Skip to content

Openrc service files are non-functional if sys-apps/openrc isn't yet installed on the system #12683

Closed
Peter-Levine/zfs
#1
@Peter-Levine

Description

@Peter-Levine

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:

AS_IF([test -x "/sbin/openrc-run"],

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.

See https://bugs.gentoo.org/820278

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions