diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-08-30 15:25:11 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-08-30 15:25:51 -0700 |
commit | b013ca92c618cb735ec189768d70c21e8471e0d9 (patch) | |
tree | 59b872acc953a741ae4da5984f55201bd2b3f99c /sys-fs | |
parent | dev-util/csup: Port to EAPI 7 (diff) | |
download | gentoo-b013ca92c618cb735ec189768d70c21e8471e0d9.tar.gz gentoo-b013ca92c618cb735ec189768d70c21e8471e0d9.tar.bz2 gentoo-b013ca92c618cb735ec189768d70c21e8471e0d9.zip |
sys-fs/zfs: don't print openrc-specific message for systemd users
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/zfs/zfs-9999.ebuild | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/sys-fs/zfs/zfs-9999.ebuild b/sys-fs/zfs/zfs-9999.ebuild index 1a24ecab027a..7def71113015 100644 --- a/sys-fs/zfs/zfs-9999.ebuild +++ b/sys-fs/zfs/zfs-9999.ebuild @@ -207,14 +207,19 @@ pkg_postinst() { update_moduledb fi - [[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \ - einfo "You should add zfs-import to the boot runlevel." - [[ -e "${EROOT}/etc/runlevels/boot/zfs-mount" ]]|| \ - einfo "You should add zfs-mount to the boot runlevel." - [[ -e "${EROOT}/etc/runlevels/default/zfs-share" ]] || \ - einfo "You should add zfs-share to the default runlevel." - [[ -e "${EROOT}/etc/runlevels/default/zfs-zed" ]] || \ - einfo "You should add zfs-zed to the default runlevel." + if systemd_is_booted || has_version sys-apps/systemd; then + einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset" + einfo "for default zfs systemd service configuration" + else + [[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \ + einfo "You should add zfs-import to the boot runlevel." + [[ -e "${EROOT}/etc/runlevels/boot/zfs-mount" ]]|| \ + einfo "You should add zfs-mount to the boot runlevel." + [[ -e "${EROOT}/etc/runlevels/default/zfs-share" ]] || \ + einfo "You should add zfs-share to the default runlevel." + [[ -e "${EROOT}/etc/runlevels/default/zfs-zed" ]] || \ + einfo "You should add zfs-zed to the default runlevel." + fi } pkg_postrm() { |