mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
sys-fs/zfs: use $(systemd_get_systempresetdir)
b8f91fee6a introduced this eclass function,
let's use it.
Bug: https://bugs.gentoo.org/813639
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
@@ -154,7 +154,7 @@ src_configure() {
|
||||
--with-linux-obj="${KV_OUT_DIR}"
|
||||
--with-udevdir="$(get_udevdir)"
|
||||
--with-systemdunitdir="$(systemd_get_systemunitdir)"
|
||||
--with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
|
||||
--with-systemdpresetdir="$(systemd_get_systempresetdir)"
|
||||
$(use_enable debug)
|
||||
$(use_enable nls)
|
||||
$(use_enable python pyzfs)
|
||||
@@ -225,7 +225,7 @@ pkg_postinst() {
|
||||
fi
|
||||
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
|
||||
einfo "Please refer to ${EROOT}/$(systemd_get_systempresetdir)/50-zfs.preset"
|
||||
einfo "for default zfs systemd service configuration"
|
||||
else
|
||||
[[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
|
||||
|
||||
@@ -206,7 +206,7 @@ src_configure() {
|
||||
--with-pamconfigsdir="${EPREFIX}/unwanted_files"
|
||||
--with-pammoduledir="$(getpam_mod_dir)"
|
||||
--with-systemdunitdir="$(systemd_get_systemunitdir)"
|
||||
--with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
|
||||
--with-systemdpresetdir="$(systemd_get_systempresetdir)"
|
||||
--with-vendor=gentoo
|
||||
$(use_enable debug)
|
||||
$(use_enable nls)
|
||||
@@ -281,7 +281,7 @@ pkg_postinst() {
|
||||
fi
|
||||
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
|
||||
einfo "Please refer to ${EROOT}/$(systemd_get_systempresetdir)/50-zfs.preset"
|
||||
einfo "for default zfs systemd service configuration"
|
||||
else
|
||||
[[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
|
||||
|
||||
@@ -203,7 +203,7 @@ src_configure() {
|
||||
--with-pamconfigsdir="${EPREFIX}/unwanted_files"
|
||||
--with-pammoduledir="$(getpam_mod_dir)"
|
||||
--with-systemdunitdir="$(systemd_get_systemunitdir)"
|
||||
--with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
|
||||
--with-systemdpresetdir="$(systemd_get_systempresetdir)"
|
||||
--with-vendor=gentoo
|
||||
# Building zfs-mount-generator.c on musl breaks as strndupa
|
||||
# isn't available. But systemd doesn't support musl anyway, so
|
||||
@@ -282,7 +282,7 @@ pkg_postinst() {
|
||||
fi
|
||||
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
|
||||
einfo "Please refer to ${EROOT}/$(systemd_get_systempresetdir)/50-zfs.preset"
|
||||
einfo "for default zfs systemd service configuration"
|
||||
else
|
||||
[[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
|
||||
|
||||
@@ -203,7 +203,7 @@ src_configure() {
|
||||
--with-pamconfigsdir="${EPREFIX}/unwanted_files"
|
||||
--with-pammoduledir="$(getpam_mod_dir)"
|
||||
--with-systemdunitdir="$(systemd_get_systemunitdir)"
|
||||
--with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
|
||||
--with-systemdpresetdir="$(systemd_get_systempresetdir)"
|
||||
--with-vendor=gentoo
|
||||
# Building zfs-mount-generator.c on musl breaks as strndupa
|
||||
# isn't available. But systemd doesn't support musl anyway, so
|
||||
@@ -282,7 +282,7 @@ pkg_postinst() {
|
||||
fi
|
||||
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
|
||||
einfo "Please refer to ${EROOT}/$(systemd_get_systempresetdir)/50-zfs.preset"
|
||||
einfo "for default zfs systemd service configuration"
|
||||
else
|
||||
[[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
|
||||
|
||||
@@ -198,7 +198,7 @@ src_configure() {
|
||||
--with-pamconfigsdir="${EPREFIX}/unwanted_files"
|
||||
--with-pammoduledir="$(getpam_mod_dir)"
|
||||
--with-systemdunitdir="$(systemd_get_systemunitdir)"
|
||||
--with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
|
||||
--with-systemdpresetdir="$(systemd_get_systempresetdir)"
|
||||
--with-vendor=gentoo
|
||||
# Building zfs-mount-generator.c on musl breaks as strndupa
|
||||
# isn't available. But systemd doesn't support musl anyway, so
|
||||
@@ -277,7 +277,7 @@ pkg_postinst() {
|
||||
fi
|
||||
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
einfo "Please refer to ${EROOT}/lib/systemd/system-preset/50-zfs.preset"
|
||||
einfo "Please refer to ${EROOT}/$(systemd_get_systempresetdir)/50-zfs.preset"
|
||||
einfo "for default zfs systemd service configuration"
|
||||
else
|
||||
[[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \
|
||||
|
||||
Reference in New Issue
Block a user