Hi,

quoting
from https://manpages.debian.org/unstable/sysvinit-core/shutdown.8.en.html

shutdown does its job by signalling the init process, asking it to
change the runlevel. Runlevel 0 is used to halt the system, runlevel 6
is used to reboot the system, and runlevel 1 is used to put to system
into a state where administrative tasks can be performed; this is the
default if neither the -h or -r flag is given to shutdown.

On Fri, 24 Jan 2025 15:41:03 +0100
Matthias Geiger <werdah...@debian.org> wrote:
> 
> running sudo /sbin/shutdown now with openrc as service mamanger does
> not shut down the machine as expected, but bails out because
> /etc/inittab.d does not exist.
> =======
> 2025-01-24T15:31:26.820456+01:00 midgard shutdown[4570]: shutting
> down for system reboot 2025-01-24T15:31:26.837905+01:00 midgard init:
> Switching to runlevel: 1 2025-01-24T15:31:26.838058+01:00 midgard
> init: No inittab.d directory found 2025-01-24T15:31:26.839355+01:00
> midgard kernel: Not activating Mandatory Access Control as
> /sbin/tomoyo-init does not exist. =======
> The system then re-starts. I would expect that shutdown works on
> openrc, too.

it enters runlevel 1 but then reboots, I think it should give an
emergency shell prompt.

Best,
Lorenzo

> Using the openrc-shutdown command as workaround works as expected.
> 
> best,
> 
> werdahias
> 
> 
> 
> - -- System Information:
> Debian Release: trixie/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 6.12.8-amd64 (SMP w/16 CPU threads; PREEMPT)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
> LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash
> Init: OpenRC (via /run/openrc), PID 1: init
> LSM: AppArmor: enabled
> 
> Versions of packages sysvinit-core depends on:
> ii  initscripts     3.13-1
> ii  libc6           2.40-6
> ii  libselinux1     3.7-3+b1
> ii  mount           2.40.4-1
> ii  openrc          0.56-1
> ii  sysvinit-utils  3.13-1
> 
> Versions of packages sysvinit-core recommends:
> ii  orphan-sysvinit-scripts  0.17
> 
> Versions of packages sysvinit-core suggests:
> pn  bootlogd  <none>
> 
> - -- debconf information:
>   sysvinit/hurd-fix-inittab:
> 
> -----BEGIN PGP SIGNATURE-----
> 
> iIsEARYIADMWIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCZ5OmeRUcd2VyZGFoaWFz
> QGRlYmlhbi5vcmcACgkQ7L7btge5sr5FbwEAiK+Bq4oT1wtT7+gfc57Q06y42eaK
> N8VZW8bkwlG3+54A/A0wmxOPPXTlVFCKm0tBcy3/kE1Nq1Z67Nk4+07poeYB
> =yug4
> -----END PGP SIGNATURE-----
> 

Reply via email to