Debian Bug report logs - #326677
sysvinit: Support quiet booting for splash screens?

version graph

Package: sysvinit; Maintainer for sysvinit is Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>; Source for sysvinit is src:sysvinit.

Reported by: Petter Reinholdtsen <pere@hungry.com>

Date: Sun, 4 Sep 2005 22:48:02 UTC

Severity: wishlist

Found in version sysvinit/2.86.ds1-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Miquel van Smoorenburg <miquels@cistron.nl>:
Bug#326677; Package sysvinit. Full text and rfc822 format available.

Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
New Bug report received and forwarded. Copy sent to Miquel van Smoorenburg <miquels@cistron.nl>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Petter Reinholdtsen <pere@hungry.com>
To: submit@bugs.debian.org
Subject: sysvinit: Should support quiet booting for splash screens
Date: Mon, 05 Sep 2005 00:39:29 +0200
Package:  sysvinit
Version:  2.86.ds1-1
Severity: wishlist
Tags:     patch

While reviewing the patches from ubuntu to the sysvinit package, I
came across a patch to quiet down init.  This is used when booting
with a splash screen, to make sure no spurious output make it to the
console.  I believe it would be useful to have this in Debian as well,
to make it possible to get a more pretty boot.  These are the relevant
changelog entries:

sysvinit (2.85-22ubuntu2) warty; urgency=low

  * changed the 'quietinit' flag to 'splash'

 -- Nathaniel McCallum <npmccallum@gentoo.org>  Fri, 20 Aug 2004 13:58:43 -0400

sysvinit (2.85-22ubuntu1) warty; urgency=low

  [...]
  * src/init.c: added a quietinit option which disabled initial boot output

 -- Nathaniel McCallum <npmccallum@gentoo.org>  Mon, 16 Aug 2004 12:15:14 -0400

And here is the patch.  Perhaps the --splash flag should be --silent
instead?

diff -pruN sysvinit_2.86.ds1-1.1/src/init.c sysvinit_2.86.ds1-1.1ubuntu5/src/init.c
--- sysvinit_2.86.ds1-1.1/src/init.c2004-07-30 13:16:20.000000000 +0100
+++ sysvinit_2.86.ds1-1.1ubuntu5/src/init.c2005-08-31 13:37:24.000000000 +0100
@@ -115,6 +115,7 @@ char *user_console = NULL;/* User conso
 char *console_dev;/* Console device. */
 int pipe_fd = -1;/* /dev/initctl */
 int did_boot = 0;/* Did we already do BOOT* stuff? */
+int quietinit = 0;/* Should init be quiet on load? */
 int main(int, char **);
 
 /*Used by re-exec part */
@@ -2423,7 +2424,8 @@ int init_main()
   /*
  *Say hello to the world
  */
-  initlog(L_CO, bootmsg, "booting");
+if (!quietinit)
+  initlog(L_CO, bootmsg, "booting");
 
   /*
  *See if we have to start an emergency shell.
@@ -2651,6 +2653,8 @@ int main(int argc, char **argv)
 putenv("AUTOBOOT=YES");
 else if (!strcmp(argv[f], "-b") || !strcmp(argv[f],"emergency"))
 emerg_shell = 1;
+else if (!strcmp(argv[f], "-s") || !strcmp(argv[f],"splash"))
+quietinit = 1;
 else if (!strcmp(argv[f], "-z")) {
 /* Ignore -z xxx */
 if (argv[f + 1]) f++;



Message sent on to Petter Reinholdtsen <pere@hungry.com>:
Bug#326677. Full text and rfc822 format available.

Message #8 received at 326677-submitter@bugs.debian.org (full text, mbox):

From: Thomas Hood <jdthood@yahoo.co.uk>
To: 326677-submitter@bugs.debian.org
Subject: How 'bout we use INIT_VERBOSE for this?
Date: Tue, 10 Jan 2006 14:38:26 +0100
Would it make sense to use INIT_VERBOSE to control this?

-- 
Thomas



Changed Bug title. Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org. Full text and rfc822 format available.

Tags removed: patch Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#326677; Package sysvinit. Full text and rfc822 format available.

Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #17 received at 326677@bugs.debian.org (full text, mbox):

From: Petter Reinholdtsen <pere@hungry.com>
To: 326677@bugs.debian.org
Subject: sysvinit: Support quiet booting for splash screens?
Date: Mon, 11 Sep 2006 10:46:37 +0200
[Thomas Hood]
> Would it make sense to use INIT_VERBOSE to control this?

It sound like a good idea, at least.  That way the INIT_VERBOSE=no
flag would affect both the boot scripts and init itself.  Patch
welcome. :)

On the other hand the 'splash' kernel option is used to activate the
splash screens, while the 'quiet' kernel option is used to quiet down
the boot.  Perhaps it make more sense to use 'quiet' instead of
INIT_VERBOSE all over, and expect those with splash screens to use
'splash quiet' as kernel arguments if they want few messages during
boot as well as the splash screen activated?  The alternative would be
'splash quiet INIT_VERBOSE=no', as one need to tell the kernel to shut
up anyway.

I believe adding support for 'quiet' as well as INIT_VERBOSE (and
perhaps dropping INIT_VERBOSE support some time in the future), and
adding support for the 'quiet' flag in init make most sense.  Any
objections?  If not, I will go ahead with that plan.

Friendly,
-- 
Petter Reinholdtsen



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 07:08:34 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.