[ User ] Login

Bug 78: CLOSED

linux receipt supose he is the only OS on grub

Date: 2013-01-03 03:44 - Creator: border - Priority standard - 2 messages

on linux(the package) receipt at line 325

pick the first root=(foo.foo) he found and use it!
# GRUB stuff.
if [ -f bug/boot/grub/menu.lst ]; then
root_dev=
grub_dev=
# Add new kernel entry in case of upgrade for installed system.
if ! grep -q vmlinuz--slitaz bug/boot/grub/menu.lst; then
cat >> bug/boot/grub/menu.lst << EOT

title SliTaz GNU/Linux (Kernel -slitaz)

kernel /boot/vmlinuz--slitaz root=
EOT
But what if the first entry is NOT the current OS ?

Affected package(s): linux

Messages

By: border on 2013-01-03 03:47


code snipet here:
the one above have been executed LOLLL.

 paste.slitaz.org/?f843e6955031f0c3#tOPlzZX+z7mQEGNWyA8CxuJaeENdySGl8q8RVw7iOPE=

By: border on 2013-01-05 17:32

fixed here  hg.slitaz.org/wok/rev/47a7ea2215ab