Bug#741365: Unnecessary device-mapper errors - /usr/share/grub/grub-mkconfig_lib
Elimar Riesebieter
riesebie at lxtec.de
Sun Dec 14 11:05:39 UTC 2014
Control: tag -1 patch
* Steve Graham <bugs at annaghvarn.plus.com> [2014-08-16 13:27 +0100]:
> I also have a system with no LVM requirement.
>
> The lines "/proc/devices: No entry for device-mapper found" are emitted by
> grub-probe. In general, the grub scripts redirect grub-probe's stderr to
> /dev/null to suppress these, but the subroutines in
> /usr/share/grub/grub-mkconfig_lib aren't completely consistent in doing so.
>
> I quickly hacked /usr/share/grub/grub-mkconfig_lib to add the redirection on
> every invocation of grub-probe and the messages have gone away.
>
> For example, the original line
> partmap="`"${grub_probe}" --device $@ --target=partmap`"
> was changed to
> partmap="`"${grub_probe}" --device $@ --target=partmap`" 2> /dev/null
>
> (I'm not supplying an actual diff because I haven't checked the full logic
> and may have broken something. It was just a quick experiment.)
Attached patch I've successfully tested on i386_soft-raid,
amd64_one-disk, amd64_LVM_soft-raid and ppc_one-disk
Elimar
--
Learned men are the cisterns of knowledge,
not the fountainheads ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub-mkconfig_lib.patch
Type: text/x-diff
Size: 2082 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20141214/bbd639fd/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20141214/bbd639fd/attachment.sig>
More information about the Pkg-grub-devel
mailing list