johnramsden / zedenv-grub

zedenv plugin for GRUB
https://zedenv.readthedocs.io/en/latest/plugins.html#grub
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

PKGBUILD/setup.py doesn't install GRUB generator #6

Closed danboid closed 6 years ago

danboid commented 6 years ago

If you install the grub-generators branch of zedenv-grub via setup.py it copies the GRUB generator to /etc/grub.d/05_zfs_linux.py but the PKGBUILD-git file doesn't copy any generator file into /etc/grub.d

danboid commented 6 years ago

Having looked at the PKGBUILD I can see that it runs setup.py so I expect error is actually within the setup.py instead of the PKGBUILD.

johnramsden commented 6 years ago

I changed it to 05 so the zedenv entries default to before the 10_linux ones. Is it being installed for you?

danboid commented 6 years ago

No, I don't have any zfs scripts in /etc/grub.d after installing the zedenv-grub-git package.

johnramsden commented 6 years ago

Strange, I'll check it out.

johnramsden commented 6 years ago

So this is what I did on a brand new VM to install:

ls /etc/grub.d
00_header  10_linux  20_linux_xen  30_os-prober  40_custom  41_custom  README

With an AUR manager:

yay -S zedenv
git clone https://github.com/johnramsden/zedenv-grub.git
cd zedenv-grub
git checkout grub-generators

Change Source in packaging/arch/PKGBUILD-git

cd packaging/arch/
nano PKGBUILD-git
cat PKGBUILD-git

source=('zedenv-grub::git+https://github.com/johnramsden/zedenv-grub#branch=grub-generators')

Build and install package:

makepkg -sic -p PKGBUILD-git
ls /etc/grub.d                                          
00_header  05_zfs_linux.py  10_linux  20_linux_xen  30_os-prober  40_custom  41_custom  README

@danboid Maybe you were using the master branch? Perhaps I should have mentioned that you needed to use the 'grub-generators' branch. Let me know if that works.

danboid commented 6 years ago

I was using the grub-generators branch (I posted my installation steps in another bug report) but I didn't edit the PKGBUILD-git to point to the correct branch (after switching branch) as I expected that would've been set correctly. Not so!

danboid commented 6 years ago

Please sync the AUR PKGBUILDs for zedenv with the ones on github. The PKGBUILDs included with the source (on github) should be the canonical versions instead of those on the AUR, which I instinctively trust less. Also fix the PKBUILD-git in the grub-gen branch of the plugin so it doesn't need to edited please.

danboid commented 6 years ago

The current grub-generators branch PKGBUILD-git does install the generator so closing.