[Bug 554307] Re: linux-boot-prober yields wrong uuid for kernel root parameter
Phillip Susi
psusi at ubuntu.com
Wed May 9 13:39:36 UTC 2018
I see now. So os-prober detects an install on another partition,
decides to try and boot it with some kernel, but passes the wrong root
argument. That does seem wrong.
** Changed in: os-prober (Ubuntu)
Status: Won't Fix => Triaged
** Description changed:
- Binary package hint: os-prober
+ When os-prober detects another install on a system with a shared /boot,
+ it sets up a menu to boot that install, but passes the kernel a root=
+ argument directing it to mount the root partition of the install running
+ os-prober instead of the partition on which the other system was found.
+ Example:
- My Partitions:
- sda5 swap
- sda6 lucid
- sda7 karmic
-
- linux-boot-prober doesn't take the root partition as kernel root
- paraameter for my karmic installation.
-
- matthias at netbook:/boot/grub$ ls -l /dev/disk/by-uuid/
- insgesamt 0
- lrwxrwxrwx 1 root root 10 2010-04-02 23:08 199233d9-7174-445d-81df-eb9c95af871f -> ../../sda7
- lrwxrwxrwx 1 root root 10 2010-04-02 23:08 1E4F-1E00 -> ../../sda2
- lrwxrwxrwx 1 root root 10 2010-04-02 23:08 523cd06e-f460-4c88-b1e9-5382df4e5d37 -> ../../sda6
- lrwxrwxrwx 1 root root 10 2010-04-02 23:08 82A8C040A8C03507 -> ../../sda1
- lrwxrwxrwx 1 root root 10 2010-04-02 23:08 837c2ad3-a209-4668-b864-a79320c5094b -> ../../sda5
-
- matthias at netbook:/boot/grub$ linux-boot-prober /dev/disk/by-uuid/199233d9-7174-445d-81df-eb9c95af871f
- unshare failed: Operation not permitted
- /dev/disk/by-uuid/199233d9-7174-445d-81df-eb9c95af871f:/dev/disk/by-uuid/199233d9-7174-445d-81df-eb9c95af871f:Ubuntu, Linux 2.6.31-16-generic:/boot/vmlinuz-2.6.31-16-generic:/boot/initrd.img-2.6.31-16-generic:root=UUID=523cd06e-f460-4c88-b1e9-5382df4e5d37 ro quiet splash
- ...
-
- I suspect that when I try to boot my karmic, it boots the karmic kernel
- with lucid userland -> nothing works.
-
- ProblemType: Bug
- DistroRelease: Ubuntu 10.04
- Package: os-prober 1.36
- ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
- Uname: Linux 2.6.32-19-generic i686
- Architecture: i386
- Date: Sat Apr 3 01:15:03 2010
- ProcEnviron:
- LANG=de_DE.UTF-8
- SHELL=/bin/bash
- SourcePackage: os-prober
+ menuentry '<name of first linux OS> (on /dev/sda2)' [...] {
+ [...]
+ set root='(hd0,msdos1)' # <- this is the boot partition, /dev/sda1
+ search --no-floppy --fs-uuid --set=root <UUID of /dev/sda1>
+ linux /vmlinuz-x.x.x root=UUID=<UUID of /dev/sda2> [...]
+ initrd [....]
+ }
+ menuentry '<name of second linux OS> (on /dev/sda3)' [...] {
+ [...]
+ set root='(hd0,msdos1)' # <- this is the boot partition, /dev/sda1
+ search --no-floppy --fs-uuid --set=root <UUID-of-/dev/sda1>
+ linux /vmlinuz-y.y.y root=UUID=<UUID of /dev/sda2 (!!!)> [...]
+ initrd [....]
+ }
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to os-prober in Ubuntu.
https://bugs.launchpad.net/bugs/554307
Title:
linux-boot-prober yields wrong uuid for kernel root parameter
Status in os-prober package in Ubuntu:
Triaged
Bug description:
When os-prober detects another install on a system with a shared
/boot, it sets up a menu to boot that install, but passes the kernel a
root= argument directing it to mount the root partition of the install
running os-prober instead of the partition on which the other system
was found. Example:
menuentry '<name of first linux OS> (on /dev/sda2)' [...] {
[...]
set root='(hd0,msdos1)' # <- this is the boot partition, /dev/sda1
search --no-floppy --fs-uuid --set=root <UUID of /dev/sda1>
linux /vmlinuz-x.x.x root=UUID=<UUID of /dev/sda2> [...]
initrd [....]
}
menuentry '<name of second linux OS> (on /dev/sda3)' [...] {
[...]
set root='(hd0,msdos1)' # <- this is the boot partition, /dev/sda1
search --no-floppy --fs-uuid --set=root <UUID-of-/dev/sda1>
linux /vmlinuz-y.y.y root=UUID=<UUID of /dev/sda2 (!!!)> [...]
initrd [....]
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/554307/+subscriptions
More information about the foundations-bugs
mailing list