Package: runit-init Version: 2.1.2-54 Severity: minor X-Debbugs-Cc: Olaf Meeuwissen <paddy-h...@member.fsf.org>, Mark Hindley <m...@hindley.org.uk>, plore...@disroot.org
>From Devuan bug #749 [1] > > 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. When runit is init, calling halt or reboot at the end of stage3 is unecessary, so an easy solution to silent those warnings is to skip halt and reboot scripts during the shutdown loop, so that reboot or poweroff is carry on by runit code as stage 3 returns. There will be still one warning left for the -w flag but that is already tracked in #992648 [2]. I prefer not to silence the warning in shutdown.c: * It nice for the user to be warned that a used flag is noop * (more important) halt/reboot are called by other scripts or programs in the system, and I don't have a complete picture of that, so I'm using the warning to make debug easier in such situations. Olaf, let me know if you would be unsatisfyied with the above solution; Mark, I think the Devuan bug can be closed or marked as reassigned to this one (I don't know how to manipulate the Devuan BTS). Best, Lorenzo [1] https://bugs.devuan.org/cgi/bugreport.cgi?bug=749 [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992648 -- System Information: Debian Release: 12.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') merged-usr: no Architecture: amd64 (x86_64) Kernel: Linux 6.1.0van (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: runit (via /run/runit.stopit) Versions of packages runit-init depends on: ii getty-run 2.1.2-54 ii initscripts 3.06-2 ii insserv 1.24.0-1 ii mount 2.38.1-5 ii runit 2.1.2-54 Versions of packages runit-init recommends: ii runit-services 0.5.4 runit-init suggests no packages. -- no debconf information