Devuan bug report logs - #749
initscripts: /etc/init.d/halt calls halt with unsupported options

version graph

Package: runit-init; Maintainer for runit-init is (unknown); Source for runit-init is src:runit.

Reported by: Olaf Meeuwissen <paddy-hack@member.fsf.org>

Date: Wed, 8 Mar 2023 12:26:01 UTC

Severity: normal

Tags: debian

Fixed in version 2.1.2-55

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

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

Full log


Message #8 received at 749@bugs.devuan.org (full text, mbox, reply):

Received: (at 749) by bugs.devuan.org; 8 Mar 2023 12:43:38 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Wed, 08 Mar 2023 12:43:38 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id IwugF/qCCGR5LgAAmSBk0A
	(envelope-from <mark@hindley.org.uk>)
	for <bugs@devuan.org>; Wed, 08 Mar 2023 12:43:38 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 3189E96F; Wed,  8 Mar 2023 12:43:37 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; envelope-from=mark@hindley.org.uk; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id F2952895
	for <749@bugs.devuan.org>; Wed,  8 Mar 2023 12:43:32 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1pZt8k-0005Uy-Jr; Wed, 08 Mar 2023 12:43:30 +0000
Received: (nullmailer pid 21221 invoked by uid 1000);
	Wed, 08 Mar 2023 12:43:30 -0000
Date: Wed, 8 Mar 2023 12:43:30 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: Olaf Meeuwissen <paddy-hack@member.fsf.org>, 749@bugs.devuan.org
Cc: Lorenzo Puliti <plorenzo@disroot.org>
Subject: Re: bug#749: initscripts: /etc/init.d/halt calls halt with
 unsupported options
Message-ID: <ZAiC8qoTfxxQnmYM@hindley.org.uk>
References: <874jqv5t46.fsf@basecamp>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <874jqv5t46.fsf@basecamp>
X-Debbugs-No-Ack: No Thanks
Olaf,

On Wed, Mar 08, 2023 at 08:44:01PM +0900, Olaf Meeuwissen wrote:
> Package: initscripts
> Version: 3.06-2devuan1
> Severity: normal
> X-Debbugs-Cc: none, Olaf Meeuwissen <paddy-hack@memberr.fsf.org>
> 
> Dear Maintainer,
> 
> Every time I `poweroff` my machine, I see error message flash by that
> complain about `halt` being called with unsupported options.  I think
> I have tracked this down to /etc/init.d/halt making blind assumptions
> about the options supported by the `halt` command.

Thanks. We keep bumping into issues similar to this with the different halt
implementations.

I don't immediately have a really good solution.

> Said command may be provided by any of a number of packages.  A quick
> `apt-file search sbin/halt` turns up
> 
>   $ apt-file search sbin/halt
>   bfh-container: /sbin/halt
>   finit-sysv: /sbin/halt
>   molly-guard: /sbin/halt
>   progress-linux-container: /sbin/halt
>   runit-init: /sbin/halt
>   systemd-sysv: /sbin/halt
>   sysvinit-core: /sbin/halt
> 
> Mine happens to be
> 
>   $ ls -l /sbin/halt
>   lrwxrwxrwx 1 root root 19 Feb 10 03:45 /sbin/halt -> /lib/runit/shutdown
> 
> where the symlink target is from the runit package.  According to the
> manual page, my halt command only supports -f, -w and -n short options.

My gut reaction is that runit's halt should either support the sysvinit options
even if noop.

Lorenzo,

I have no real experience of runit yet. What is the relationship between it an
initscripts? When are the initscripts used? Is there something you can do within
src:runit to avoid this?

Thanks

Mark

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: Sun Nov 24 13:47:42 2024;