grub-probe: When a device has been specified WITHOUT option '-d', grub-probe should display an additional user-friendly advice message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When a device has been specified to 'grub-probe' WITHOUT option '-d', 'grub-probe' systematically displays following error message :
grub-probe: error: failed to get canonical path of `udev'.
This error message is logical when considering the internal point of view of 'grub-probe', but it is NOT user-friendly.
Therefore, I suggest that 'grub-probe' displays an additional user-friendly advice message like the following one :
grub-probe: advice: specifying a device requires option '-d'.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: grub-common 2.02~beta2-
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Thu May 19 17:23:33 2016
InstallationDate: Installed on 2014-11-03 (562 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: grub2
UpgradeStatus: Upgraded to xenial on 2016-05-09 (9 days ago)
While I do agree that this error message is indeed unfriendly, we ideally shouldn't expose the end user to grub-probe output anyways, and I don't feel we should carry a downstream patch for this.
You are free to report this upstream and/or contribute a patch upstream that changes the error message.