error10 / kexec-reboot

Reboot in seconds, not minutes
GNU General Public License v3.0
250 stars 29 forks source link

Not working on different grub2 entry #14

Open leancode opened 4 years ago

leancode commented 4 years ago

I have an entry that looks like the below that will not match the regex in grub2_kernel_entries. I've tried to improve it but after a couple of hours I had to conceed defeat. I see that there are several issues that all boil down to the same thing. Do you think you could find the time to updated it? The truth is this script is worth its time in gold. menuentry 'Proxmox Virtual Environment GNU/Linux' --class proxmox --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2310887e430f1051' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod part_gpt insmod zfs set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 --hint-bios=hd3,gpt2 --hint-efi=hd3,gpt2 --hint-baremetal=ahci3,gpt2 --hint-bios=hd4,gpt2 --hint-efi=hd4,gpt2 --hint-baremetal=ahci4,gpt2 --hint-bios=hd5,gpt2 --hint-efi=hd5,gpt2 --hint-baremetal=ahci5,gpt2 --hint-bios=hd6,gpt2 --hint-efi=hd6,gpt2 --hint-baremetal=ahci6,gpt2 --hint-bios=hd7,gpt2 --hint-efi=hd7,gpt2 --hint-baremetal=ahci7,gpt2 2310887e430f1051 else search --no-floppy --fs-uuid --set=root 2310887e430f1051 fi echo 'Loading Linux 5.3.13-3-pve ...' linux /ROOT/pve-1@/boot/vmlinuz-5.3.13-3-pve root=ZFS=rpool/ROOT/pve-1 ro root=ZFS=rpool/ROOT/pve-1 boot=zfs quiet echo 'Loading initial ramdisk ...' initrd /ROOT/pve-1@/boot/initrd.img-5.3.13-3-pve }