#561855 grub-mkconfig: improve handling when / is on a device not supported by GRUB

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Philipp Kern
Date:
2011-07-14 11:15:20 UTC
Severity:
normal
#561855#3
Date:
2009-12-20 17:52:56 UTC
From:
To:
Package: grub-pc
Version: 1.98~20091210-1

Hi,

I would be very grateful if update-grub wouldn't cause packages like
grub-pc and memtest86+ fail to install/configure when grub-probe cannot
find a device for /.  The machine in question is booting from NFS and
serves as a master image for other machines that do indeed install grub2
onto their hard drives.  So I'd have to divert update-grub only to
restore it on every machine which is a real one...

Kind regards,
Philipp Kern

#561855#8
Date:
2009-12-20 18:22:32 UTC
From:
To:
Am Sonntag, den 20.12.2009, 18:52 +0100 schrieb Philipp Kern:

Hello Philip,

would it be enough in your case if we would just not do anything (except
printing a warning to state that) if /boot/grub/grub.cfg doestn't exist
yet in update-grub?

We discussed this just recently already, due to #538118
Only grub-installer needs to be changed first before we can implement
this in grub2.

#561855#13
Date:
2010-07-05 13:46:44 UTC
From:
To:
Hi,

with a "/" partition on LVM (but /boot is not on LVM), I obtain the same error :
# update-grub
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

/dev/mapper/vg-root (aka /dev/vg/root) is a LV from the VG "/dev/vg", wich contain full /dev/sdb ; and /boot is on /dev/sda1.

Do you need more informations about my setup ?

Olivier B.

#561855#18
Date:
2010-07-05 14:13:39 UTC
From:
To:
Please upgrade to the version in unstable and let me know if it fixes
your problem.  I expect that it will, due to the fixes for #550704 and
#574863.

Please also note that your problem is not IMO directly related to
Philipp Kern's original report here, which is about devices that really
aren't supported by GRUB *at all* right now.  For GRUB, it's best to
file a new bug report rather than piggybacking onto an existing one.  As
such, please do not close this bug if you find that the version in
unstable fixes your problem.

Regards,

#561855#29
Date:
2011-07-14 11:06:10 UTC
From:
To:
Hi,

Just upgraded to latest grub2 (1.99-8) from unstable and it still does not work for me. I have the same case where the /
is over NFS share.

Cheers,
-Nik