Closed
Description
System information
Type | Version/Name |
---|---|
Distribution Name | Gentoo Linux |
Distribution Version | 17.1 |
Kernel Version | 5.10.61-gentoo-x86_64 |
Architecture | x86_64 |
OpenZFS Version | zfs-2.1.1-r2-gentoo / zfs-kmod-2.1.1-r0-gentoo |
Describe the problem you're observing
When switching from systemd to openrc on Gentoo, if sys-fs/zfs is merged before sys-apps/openrc then zfs service scripts appear to succeed but have no effect.
Describe how to reproduce the problem
(Switch from a systemd to a non-systemd profile, eg.)
eselect profile set default/linux/amd64/17.1/desktop/plasma
emerge -1 sys-fs/zfs sys-apps/openrc
The issue occurs because of:
Line 572 in 90b77a0
In general, Gentoo installs openrc init scripts and systemd unit files unconditioally. This removes the need for dependencies on individual init systems and aids the transition between openrc and systemd. All openrc init scripts are expected to have the shebang #!/sbin/openrc-run
. AFAICT, it's the same for Alpine, though they package the init scripts seperatly and don't support systemd.