Activity log for bug #1517545

Date Who What changed Old value New value Message
2015-11-18 16:27:40 kengo_shimane bug added bug
2015-11-18 16:32:59 kengo_shimane description Grub2 does not understand lilo.conf on Salix. Bug I got error message when I tried to update-grub on Ubuntu 14.04 with os-prober; ======== error: out of memory error: syntax error error: Incorrect command Syntax error in line 274 ======== Line 274 is located at the last line of grub.cfg.new, which I did not understand why out of memory. However, I found a syntax error on the line for 30_os-prober section, where a double quotation was disappeared at the kernel option for Salix. ======== menuentry 'Slackware Linux (Slackware 14.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-06ea6304-df14-4be6-8b42-defb07a91323' { insmod part_msdos insmod ext2 set root='hd0,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323 else search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323 fi linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal } submenu 'Advanced options for Slackware Linux (Slackware 14.1) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-06ea6304-df14-4be6-8b42-defb07a91323' { menuentry 'Salix_Mate_14.1 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--06ea6304-df14-4be6-8b42-defb07a91323' { insmod part_msdos insmod ext2 set root='hd0,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323 else search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323 fi linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal } } ======== I had a Salix on the sda2 partition and os-prober did not succeed to get the correct variables from Salix boot directory. This was confirmed because linux-boot-prober /dev/sda2 showed the same result: ======== /dev/sda2:/dev/sda2:Salix_Mate_14.1:/boot/vmlinuz-huge-3.10.17::root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal ======== Workaroud I configured LILO on Salix partition by editing lilo.conf to uncomment append = "vt.default_utf8=1". ======== # append = "vt.default_utf8=1" ======== Then grub2 works well without error message and updates grub.cfg with correct variables of kernel option for Salix. ======== linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro vga = normal ======== Suggestions I suggest the relevant scripts in 30_os-prober should be edited to recognize correctly double quation even if this is found on other boot directory. ======== LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`" #This original, not edited yet, though. ======== Grub2 does not understand lilo.conf on Salix. Bug I got error message when I tried to update-grub on Ubuntu 14.04 with os-prober; ======== error: out of memory error: syntax error error: Incorrect command Syntax error in line 274 ======== Line 274 is located at the last line of grub.cfg.new, which I did not understand why out of memory. However, I found a syntax error on the line for 30_os-prober section, where a double quotation was disappeared at the kernel option for Salix. ======== menuentry 'Slackware Linux (Slackware 14.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-06ea6304-df14-4be6-8b42-defb07a91323' {  insmod part_msdos  insmod ext2  set root='hd0,msdos2'  if [ x$feature_platform_search_hint = xy ]; then    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323  else    search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323  fi  linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal } submenu 'Advanced options for Slackware Linux (Slackware 14.1) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-06ea6304-df14-4be6-8b42-defb07a91323' {  menuentry 'Salix_Mate_14.1 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--06ea6304-df14-4be6-8b42-defb07a91323' {   insmod part_msdos   insmod ext2   set root='hd0,msdos2'   if [ x$feature_platform_search_hint = xy ]; then     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323   else     search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323   fi   linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal  } } ======== I had a Salix on the sda2 partition and os-prober did not succeed to get the correct variables from Salix boot directory. This was confirmed because linux-boot-prober /dev/sda2 showed the same result: ======== /dev/sda2:/dev/sda2:Salix_Mate_14.1:/boot/vmlinuz-huge-3.10.17::root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal ======== Workaround I configured LILO on Salix partition by editing lilo.conf to uncomment append = "vt.default_utf8=1". ======== # append = "vt.default_utf8=1" ======== Then grub2 works well without error message and updates grub.cfg with correct variables of kernel option for Salix. ======== linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro vga = normal ======== Suggestions I suggest the relevant scripts in 30_os-prober should be edited to recognize correctly double quation even if this is found on other boot directory. ======== LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`" #This original, not edited yet, though. ========
2015-11-18 16:34:22 kengo_shimane description Grub2 does not understand lilo.conf on Salix. Bug I got error message when I tried to update-grub on Ubuntu 14.04 with os-prober; ======== error: out of memory error: syntax error error: Incorrect command Syntax error in line 274 ======== Line 274 is located at the last line of grub.cfg.new, which I did not understand why out of memory. However, I found a syntax error on the line for 30_os-prober section, where a double quotation was disappeared at the kernel option for Salix. ======== menuentry 'Slackware Linux (Slackware 14.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-06ea6304-df14-4be6-8b42-defb07a91323' {  insmod part_msdos  insmod ext2  set root='hd0,msdos2'  if [ x$feature_platform_search_hint = xy ]; then    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323  else    search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323  fi  linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal } submenu 'Advanced options for Slackware Linux (Slackware 14.1) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-06ea6304-df14-4be6-8b42-defb07a91323' {  menuentry 'Salix_Mate_14.1 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--06ea6304-df14-4be6-8b42-defb07a91323' {   insmod part_msdos   insmod ext2   set root='hd0,msdos2'   if [ x$feature_platform_search_hint = xy ]; then     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323   else     search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323   fi   linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal  } } ======== I had a Salix on the sda2 partition and os-prober did not succeed to get the correct variables from Salix boot directory. This was confirmed because linux-boot-prober /dev/sda2 showed the same result: ======== /dev/sda2:/dev/sda2:Salix_Mate_14.1:/boot/vmlinuz-huge-3.10.17::root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal ======== Workaround I configured LILO on Salix partition by editing lilo.conf to uncomment append = "vt.default_utf8=1". ======== # append = "vt.default_utf8=1" ======== Then grub2 works well without error message and updates grub.cfg with correct variables of kernel option for Salix. ======== linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro vga = normal ======== Suggestions I suggest the relevant scripts in 30_os-prober should be edited to recognize correctly double quation even if this is found on other boot directory. ======== LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`" #This original, not edited yet, though. ======== Grub2 does not understand lilo.conf on Salix. Bug I got error message when I tried to update-grub on Ubuntu 14.04 with os-prober; ======== error: out of memory error: syntax error error: Incorrect command Syntax error in line 274 ======== Line 274 is located at the last line of grub.cfg.new, which I did not understand why out of memory. However, I found a syntax error on the line for 30_os-prober section, where a double quotation was disappeared at the kernel option for Salix. ======== menuentry 'Slackware Linux (Slackware 14.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-06ea6304-df14-4be6-8b42-defb07a91323' {  insmod part_msdos  insmod ext2  set root='hd0,msdos2'  if [ x$feature_platform_search_hint = xy ]; then    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323  else    search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323  fi  linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal } submenu 'Advanced options for Slackware Linux (Slackware 14.1) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-06ea6304-df14-4be6-8b42-defb07a91323' {  menuentry 'Salix_Mate_14.1 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-huge-3.10.17--06ea6304-df14-4be6-8b42-defb07a91323' {   insmod part_msdos   insmod ext2   set root='hd0,msdos2'   if [ x$feature_platform_search_hint = xy ]; then     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 06ea6304-df14-4be6-8b42-defb07a91323   else     search --no-floppy --fs-uuid --set=root 06ea6304-df14-4be6-8b42-defb07a91323   fi   linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal  } } ======== I had a Salix on the sda2 partition and os-prober did not succeed to get the correct variables from Salix boot directory. This was confirmed because linux-boot-prober /dev/sda2 showed the same result: ======== /dev/sda2:/dev/sda2:Salix_Mate_14.1:/boot/vmlinuz-huge-3.10.17::root=/dev/sda2 ro append = "vt.default_utf8=1 vga = normal ======== Workaround I configured LILO on Salix partition by editing lilo.conf to uncomment append = "vt.default_utf8=1". ======== # append = "vt.default_utf8=1" ======== Then grub2 works well without error message and updates grub.cfg with correct variables of kernel option for Salix. ======== linux /boot/vmlinuz-huge-3.10.17 root=/dev/sda2 ro vga = normal ======== Suggestions I suggest the relevant scripts in 30_os-prober should be edited to recognize correctly double quotation even if this is found on other boot directory. ======== LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`" #This original, not edited yet, though. ========