bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42409] grub-probe produces misleading errors and wrong info if use


From: Antonio Ospite
Subject: [bug #42409] grub-probe produces misleading errors and wrong info if user doesn't have permission to access drive
Date: Wed, 10 Aug 2016 13:39:18 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Follow-up Comment #1, bug #42409 (project grub):

Hi,

I agree with Alain that the error message should be improved.

I ran into this issue when using systemd-nspawn which by default restricts
access to the devices in the container, here is an example:


$ sudo systemd-nspawn -q --directory "/media/ao2/USB_rootfs" --bind /dev
grub-probe /
grub-probe: warning: disk does not exist, so falling back to partition device
/dev/sdf2.
grub-probe: warning: disk does not exist, so falling back to partition device
/dev/sdf2.
grub-probe: warning: disk does not exist, so falling back to partition device
/dev/sdf2.
grub-probe: error: disk `hostdisk//dev/sdf2' not found.
/


the message says that the disk does not exist but it does, and in my case the
error is that it cannot be opened:


open("/dev/sdf", O_RDONLY)              = -1 EPERM (Operation not permitted)


So if grub would just tell "Operation not permitted" it would be easier for
the user to understand what is going on.

Should we send a patch?

Thanks,
   Antonio


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42409>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]