more LVM stuff (Re: Bug#427289: grub-probe: error: unknown device when / is an encrypted LVM)
merge 425666 427289
thanks
Hi GRUB developers.
Here's another report with issues about LVM. I notice the device name is different than previous ones (note: device.map only has /dev/sda).
Luca: if you reply to grub-devel, please consider subscribing first (or your mail may be rejected).
Quoted 51 lines · Luca Capello
gismo:~# grub-probe -v / grub-probe: info: the size of hd0 is 195371568 grub-probe: info: opening the device `/dev/sda' grub-probe: info: the size of hd0 is 195371568 grub-probe: info: opening the device `/dev/sda' grub-probe: info: the size of hd0 is 195371568 grub-probe: info: opening the device `/dev/sda1' grub-probe: info: opening the device `/dev/sda1' grub-probe: info: the size of hd0 is 195371568 grub-probe: info: opening the device `/dev/sda2' grub-probe: info: the size of hd0 is 195371568 grub-probe: info: the size of hd0 is 195371568 grub-probe: info: the size of hd0 is 195371568 grub-probe: info: opening the device `/dev/sda1' grub-probe: info: opening the device `/dev/sda1' grub-probe: info: opening the device `/dev/sda1' grub-probe: info: the size of hd0 is 195371568 grub-probe: info: opening the device `/dev/sda2' grub-probe: info: changing current directory to /dev/mapper grub-probe: info: opening vggismo-lvroot grub-probe: error: unknown device gismo:~# =====I'm here ready to test any patch, if needed :-)
Thx, bye,
Gismo / Luca-- Package-specific info:
*********************** BEGIN
/proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw 0 0/dev/mapper/vggismo-lvroot/ ext3 rw,data=ordered 0 0/dev/mapper/vggismo-lvroot/dev/.static/devext3 rw,data=ordered 0 0 tmpfs/lib/init/rwtmpfs rw,nosuid 0 0
varrun/var/runtmpfs rw,nosuid 0 0
usbfs/proc/bus/usbusbfs rw,nosuid,nodev,noexec 0 0
tmpfs/dev/shmtmpfs rw,nosuid,nodev 0 0
devpts/dev/ptsdevpts rw,nosuid,noexec 0 0/dev/sda1/boot ext3 rw,data=ordered 0 0/dev/mapper/vggismo-lvhome/home ext3 rw,data=ordered 0 0/dev/mapper/vggismo-lvchroot/mnt/chrootext3 rw,data=ordered 0 0/dev/mapper/vggismo-lvlab/mnt/labext3 rw,data=ordered 0 0/dev/mapper/vggismo-lvmovies/mnt/moviesext3 rw,data=ordered 0 0/dev/mapper/vggismo-lvmusic/mnt/musicext3 rw,data=ordered 0 0/dev/mapper/vggismo-lvpictures/mnt/picturesext3 rw,data=ordered 0 0 *********************** END/proc/mounts
Signature · 4 lines
Robert Millan My spam trap is [email protected]. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.
Re: Bug#427289: more LVM stuff (Re: Bug#427289: grub-probe: error: unknown device when / is an encrypted LVM)
At Sun, 3 Jun 2007 23:37:25 +0200,
Quoted 2 lines · Robert Millan
Here's another report with issues about LVM. I notice the device name is different than previous ones (note: device.map only has
/dev/sda).
The problem seems to be that grub-install is probing for things outside of /boot. GRUB shouldn't use anything outside of /boot to start.
Jeroen Dekkers
Re: Bug#427289: more LVM stuff (Re: Bug#427289: grub-probe: error: unknown device when / is an encrypted LVM)
Quoted 8 lines · Jeroen Dekkers
At Sun, 3 Jun 2007 23:37:25 +0200,
Quoted 2 lines · Robert Millan
Here's another report with issues about LVM. I notice the device name is different than previous ones (note: device.map only has
/dev/sda).The problem seems to be that grub-install is probing for things outside of /boot. GRUB shouldn't use anything outside of /boot to start.
update-grub calls grub-probe a few times, in different places. Some of them could be avoided, but at least these appear to be necessary:
# Device containing our userland. Typicaly used for root= parameter. GRUB_DEVICE="`grub-probe --target=device /`" # Filesystem for the device containing our userland. Used for stuff like # choosing Hurd filesystem module. GRUB_FS="`grub-probe --target=fs /`"
See also 00_header.in for code that might scan /usr/share/ in search of unifont. If e.g. /usr is a separate partition, grub needs to know that somehow to load the font later.
Signature · 4 lines
Robert Millan My spam trap is [email protected]. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.
Re: Bug#427289: more LVM stuff (Re: Bug#427289: grub-probe: error: unknown device when / is an encrypted LVM)
At Mon, 4 Jun 2007 22:30:12 +0200,
Quoted 21 lines · Robert Millan
Quoted 8 lines · Jeroen Dekkers
At Sun, 3 Jun 2007 23:37:25 +0200,
Quoted 2 lines · Robert Millan
Here's another report with issues about LVM. I notice the device name is different than previous ones (note: device.map only has
/dev/sda).The problem seems to be that grub-install is probing for things outside of /boot. GRUB shouldn't use anything outside of /boot to start.
update-grub calls grub-probe a few times, in different places. Some of them could be avoided, but at least these appear to be necessary:
# Device containing our userland. Typicaly used for root= parameter. GRUB_DEVICE="`grub-probe --target=device /`" # Filesystem for the device containing our userland. Used for stuff like # choosing Hurd filesystem module. GRUB_FS="`grub-probe --target=fs /`"
Quoted 3 lines
See also 00_header.in for code that might scan
/usr/share/in search of unifont. If e.g. /usr is a separate partition, grub needs to know that somehow to load the font later.
GRUB shouldn't load anything from any other partition than /boot. The whole reason that we have /boot partitions is that it might be possible that the rest isn't readable by GRUB.
The reason we have grub-probe is to find out which modules need to be in core.img. You're currently using grub-probe for other things and that isn't always going to work. Grub-probe won't be able to parse encrypted LVM volumes for example, and thus grub-probe --target=fs / is never going to work if your / is encrypted.
Jeroen Dekkers
Re: Bug#427289: more LVM stuff (Re: Bug#427289: grub-probe: error: unknown device when / is an encrypted LVM)
Quoted 10 lines · Jeroen Dekkers
GRUB shouldn't load anything from any other partition than /boot. The whole reason that we have /boot partitions is that it might be possible that the rest isn't readable by GRUB.
The reason we have grub-probe is to find out which modules need to be in core.img. You're currently using grub-probe for other things and that isn't always going to work. Grub-probe won't be able to parse encrypted LVM volumes for example, and thus grub-probe --target=fs / is never going to work if your / is encrypted.
I've arranged update-grub (see my last commit) to make it tollerant to unreadable /, and just disable non-critical features when this happens, instead of aborting.
But, AFAICT the LVM readability issue I forwarded is still a problem, since it could apply to /boot as well.
Signature · 4 lines
Robert Millan My spam trap is [email protected]. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.