Jonathan Nieder wrote: > - if debconf is not installed and no init process is present, > postinst fails; > - there should be no debconf prompt at all, not a high priority one, > when no init process is present (as you mentioned).
... and here is a possible fix for that. postrm is still a bit broken (it will print an error message if init is not running and does not respect the user choice expressed in runit/signalinit). Signed-off-by: Jonathan Nieder <jrnie...@gmail.com> --- Still untested. debian/changelog | 2 ++ debian/runit.config | 8 ++------ debian/runit.postinst | 14 ++++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/debian/changelog b/debian/changelog index 47130f4..b478dfb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ runit (2.1.1-6.1.1) local; urgency=low * debian/control, debian/runit.README.Debian, debian/runit.config: remove vestiges of the runit-run package (closes: #605912). + * debian/runit.config, debian/runit.postinst: do not ask to signal + init if init is not running. -- Jonathan Nieder <jrnie...@gmail.com> Sat, 08 Jan 2011 13:39:05 -0600 diff --git a/debian/runit.config b/debian/runit.config index e6ed1ba..2183213 100644 --- a/debian/runit.config +++ b/debian/runit.config @@ -5,11 +5,7 @@ set -e db_version 2.0 -if which ps >/dev/null 2>&1; then - if ps -p 1 >/dev/null; then - db_input low runit/signalinit || : - else - db_input high runit/signalinit || : - fi +if which ps >/dev/null 2>&1 && ps -p 1 >/dev/null; then + db_input low runit/signalinit || : db_go || : fi diff --git a/debian/runit.postinst b/debian/runit.postinst index 377c1ac..a78af57 100644 --- a/debian/runit.postinst +++ b/debian/runit.postinst @@ -44,10 +44,12 @@ if ! grep '^SV:' /etc/inittab >/dev/null; then mv -f /etc/inittab'{new}' /etc/inittab fi -if test -r /usr/share/debconf/confmodule; then - . /usr/share/debconf/confmodule - db_get runit/signalinit - test "$RET" = false || kill -s HUP 1 -else - kill -s HUP 1 +if ps -p 1 >/dev/null; then + if test -r /usr/share/debconf/confmodule; then + . /usr/share/debconf/confmodule + db_get runit/signalinit + test "$RET" = false || kill -s HUP 1 + else + kill -s HUP 1 + fi fi -- 1.7.4.rc1 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org