Package: openrc
Version: 0.45.2-2
Severity: wishlist
X-Debbugs-Cc: [email protected], 
[email protected]

Dear maintainers,

as of now, openrc still needs the initscripts package to work. Some of the 
services for a base debian install (/etc/init.d) are provided by openrc, some 
by sysvinit.
for f in *; do head -n 1 $f; done | grep openrc shows only three openrc scripts 
(on my setup): agetty, cgroups and savecache. See also the patch I attached to 
illustrate that most sysvinit scripts
could be replaced by their "native" ones.
This leads to some duplicates such as shutdown being the sysvinit 
/usr/sbin/shutdown instead of /sbin/openrc-shutdown (the "correct" one).
When executing sudo shutdown, this causes my machine to never shutting down as 
it exits all processes but then changes into runlevel 6 for some reason. 
/sbin/openrc-shutdown -p 1 works as intended.
Also, some initscripts are provided by upstream but not used, like hostname. 
This leads me to the following questions:

1. Is there a reasoning behind this (shipping two scripts / only the sysvinit 
one) ?
2. If not, is is possible to replace all sysvinit scripts by the upstream ones 
because of better integration (native) and possibly fewer bugs ?
3. is it technicially possible to start a headless Debian install without any 
sysvinit scripts ?

I'd also propose an openrc-initscripts package to provide openrc-scripts from 
gentoo or alpine for packages not covered by the base openrc package. Similar 
to the orphan-sysvinit-scripts
package this would provide users with the "native" version of initscripts for 
programs.
Gladly I'd help/get started on debugging/testing/packaging. I'm sorry if I 
missed some important technical bits, am still grasping how some aspect of the 
linux init and openrc work.
I'd appreciate any kind of help or guidance.

---

Matthias Geiger


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-6-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 openrc depends on:
ii  insserv      1.24.0-1
ii  libaudit1    1:3.0.7-1.1+b2
ii  libc6        2.36-6
ii  libeinfo1    0.45.2-2
ii  libpam0g     1.5.2-5
ii  librc1       0.45.2-2
ii  libselinux1  3.4-1+b3

openrc recommends no packages.

Versions of packages openrc suggests:
pn  policycoreutils  <none>
ii  sysvinit-core    3.05-7

-- no debconf information

  • Bug#1026315: Create a openrc-initscripts package and... matthias . geiger1024

Reply via email to