d/.../grub.d/xen.cfg: Redirect output when running grub-mkconfig
authorHans van Kranenburg <hans@knorrie.org>
Wed, 3 Aug 2022 14:58:02 +0000 (16:58 +0200)
committerHans van Kranenburg <hans@knorrie.org>
Tue, 23 Aug 2022 11:40:41 +0000 (13:40 +0200)
commitc21131904e83a5de675b6feb6a023b5923dad174
tree849fbbe2d09d65d26cddc8467f40088d0d891d0f
parentdf6136afb2d1bf0b31128fa25f7bf963fca8f248
d/.../grub.d/xen.cfg: Redirect output when running grub-mkconfig

John E. Krokes noticed that the grub configuration fragment that we ship
outputs text to stdout, which means it will end up being part of the
generated grub configuration. This is wrong, and leads to error messages
during boot like "error: can't find command `Including'."...

Instead, output informational messages about progress to stderr (exactly
like what happens with other messages such as "Generating grub
configuration file ..." or "Found linux image: /boot/vmlinuz-[...]").

For the more prominent message about changing GRUB_DEFAULT as a side
effect, use the grub_warn helper instead.

(Closes: #1016547)
debian/tree/xen-hypervisor-common/etc/default/grub.d/xen.cfg