update-grub: mess in menuentry in grub.cfg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
After `update-grub` the following output is generated:
```
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (on /dev/mapper/
insmod lvm
insmod lvm
insmod ext2
set root='lvmid/
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint=
else
search --no-floppy --fs-uuid --set=root 0ed5e93c-
fi
linux /boot/vmlinuz-
initrd /boot/initrd.
}
```
Note, that 'insmod lvm' is done two times. $root variable is ignored! root option is passed like 'root=UUID=
The proper menuentry should look like:
```
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (on /dev/mapper/
insmod lvm
insmod ext2
set root='lvmid/
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint=$root 0ed5e93c-
else
search --no-floppy --fs-uuid --set=root $root
fi
linux /boot/vmlinuz-
initrd /boot/initrd.
}
```
I would want to ask people, who did such artful programming: do you look at the output of your scripts at all?
Version: 2.02~beta2-9ubuntu1
description: | updated |
description: | updated |
description: | updated |
affects: | grub (Ubuntu) → grub2 (Ubuntu) |
Don't quite understand to do first `set root='lvmid/ ODtXBF- 9DiG-LZ2p- dI92-qJZc- 9G9g-XBmgcH/ grLDh5- eAcC-DEZU- gEcc-QoBR- OUlI-ik2t1l' ` and then check $feature_ platform_ search_ hint. Where is the logic?