Devuan bug report logs - #697
/etc/default/grub.d/xen.cfg: Extraneous output line causes error message at boot

version graph

Package: xen-hypervisor-common; Maintainer for xen-hypervisor-common is (unknown); Source for xen-hypervisor-common is src:xen.

Reported by: "John E. Krokes" <mag@netherworld.org>

Date: Tue, 2 Aug 2022 09:06:02 UTC

Severity: minor

Tags: debian

Found in version 4.14.5+24-g87d90d511c-1

Fixed in version 4.16.2-1

Done: Mark Hindley <mark@hindley.org.uk>

Forwarded to https://bugs.debian.org/1016547

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#697: /etc/default/grub.d/xen.cfg: Extraneous output line causes error message at boot
Reply-To: "John E. Krokes" <mag@netherworld.org>, 697@bugs.devuan.org
Resent-From: "John E. Krokes" <mag@netherworld.org>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Tue, 02 Aug 2022 09:06:02 +0000
Resent-Message-ID: <handler.697.B.165943107928044@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 697
X-Devuan-PR-Package: xen-hypervisor-common
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.165943107928044
          (code B); Tue, 02 Aug 2022 09:06:02 +0000
Received: (at submit) by bugs.devuan.org; 2 Aug 2022 09:04:39 +0000
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [141.95.83.167]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 02 Aug 2022 09:04:39 +0000 (UTC)
Received: from decay.netherworld.org (decay.netherworld.org [38.100.53.5])
	by mail.dyne.org (Postfix) with ESMTP id D32366618E7
	for <submit@bugs.devuan.org>; Tue,  2 Aug 2022 11:04:03 +0200 (CEST)
Received: from decay.netherworld.org (localhost [127.0.0.1])
	by decay.netherworld.org (8.17.1/8.17.1) with ESMTP id 271Kfrqc016737;
	Mon, 1 Aug 2022 16:41:54 -0400
Received: (from mag@localhost)
	by decay.netherworld.org (8.17.1/8.17.1/Submit) id 271KfraA016736;
	Mon, 1 Aug 2022 16:41:53 -0400
X-Authentication-Warning: decay.netherworld.org: mag set sender to mag@netherworld.org using -f
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "John E. Krokes" <mag@netherworld.org>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Message-ID: <165938651342.16705.8672993380929509725.reportbug@decay.netherworld.org>
Date: Mon, 01 Aug 2022 16:41:53 -0400
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org
Package: xen-hypervisor-common
Version: 4.14.5+24-g87d90d511c-1
Severity: minor
File: /etc/default/grub.d/xen.cfg

Dear Maintainer,

When invoked via grub-mkconfig, xen.cfg outputs this as its first line:
        Including Xen overrides from /etc/default/grub.d/xen.cfg

The output of grub-mkconfig is expected to be redirected into a grub.cfg file.
Grub will read the grub.cfg at boot. Unfortunately, "Including" is not a
valid grub command. So when booting, grub emits this error message before
displaying its menu:
	error: can't find command `Including'.


The error message is obscured very quickly. It does not affect functionality
in any way. It requires booting on a VERY slow machine in order to read
the error message at all.


If I add a '#' to the start of the "Including", the resulting grub config file
boots with no error.
	echo "#Including Xen overrides from /etc/default/grub.d/xen.cfg"


I'm not sure if this line was intended to go into the generated config
file as a comment, or if it was intended to be shown to the user while
grub-mkconfig is running.


I have observed this and tested my fix against version
4.14.5+24-g87d90d511c-1 of xen-hypervisor-common. I have also checked
with the debian git at https://salsa.debian.org/xen-team/debian-xen/-/blob/master/debian/tree/xen-hypervisor-common/etc/default/grub.d/xen.cfg. This line
has not changed in a very long time.


I can also duplicate the behavior using grub-emu, with the output redirected
to a file.



Thanks for your time.

-Mag


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	chimaera
Architecture: x86_64

Kernel: Linux 5.10.0-16-amd64 (SMP w/2 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

-- Configuration Files:
/etc/default/grub.d/xen.cfg changed:
echo "Including Xen overrides from /etc/default/grub.d/xen.cfg"
XEN_OVERRIDE_GRUB_DEFAULT=0
if [ "$XEN_OVERRIDE_GRUB_DEFAULT" = "" ]; then
	echo "WARNING: GRUB_DEFAULT changed to boot into Xen by default!"
	echo "         Edit /etc/default/grub.d/xen.cfg to avoid this warning."
	XEN_OVERRIDE_GRUB_DEFAULT=1
fi
if [ "$XEN_OVERRIDE_GRUB_DEFAULT" = "1" ]; then
	GRUB_DEFAULT=$( \
		printf "$(gettext "%s, with Xen hypervisor")" \
		"$GRUB_DISTRIBUTOR GNU/Linux")
fi


-- no debconf information

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Apr 27 06:23:09 2024;