Also update the preset-all postinst message.
Bug: https://bugs.gentoo.org/691854
Package-Manager: Portage-2.3.71, Repoman-2.3.16_p24
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
systemctl --root="${ROOT:-/}" enable "${ENABLED_UNITS[@]}"
fi
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ if type systemctl &>/dev/null; then
+ systemctl --root="${ROOT:-/}" enable getty@.service remote-fs.target || FAIL=1
+ fi
+ elog "To enable a useful set of services, run the following:"
+ elog " systemctl preset-all --preset-mode=enable-only"
+ fi
+
if [[ -L ${EROOT}/var/lib/systemd/timesync ]]; then
rm "${EROOT}/var/lib/systemd/timesync"
fi
eerror "systemd again."
eerror
fi
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To enable a useful set of services, run the following:"
- elog " systemctl preset-all"
- fi
}
pkg_prerm() {
systemctl --root="${ROOT:-/}" enable "${ENABLED_UNITS[@]}"
fi
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ if type systemctl &>/dev/null; then
+ systemctl --root="${ROOT:-/}" enable getty@.service remote-fs.target || FAIL=1
+ fi
+ elog "To enable a useful set of services, run the following:"
+ elog " systemctl preset-all --preset-mode=enable-only"
+ fi
+
if [[ -L ${EROOT}/var/lib/systemd/timesync ]]; then
rm "${EROOT}/var/lib/systemd/timesync"
fi
eerror "systemd again."
eerror
fi
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To enable a useful set of services, run the following:"
- elog " systemctl preset-all"
- fi
}
pkg_prerm() {
systemctl --root="${ROOT:-/}" enable "${ENABLED_UNITS[@]}"
fi
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ if type systemctl &>/dev/null; then
+ systemctl --root="${ROOT:-/}" enable getty@.service remote-fs.target || FAIL=1
+ fi
+ elog "To enable a useful set of services, run the following:"
+ elog " systemctl preset-all --preset-mode=enable-only"
+ fi
+
if [[ -L ${EROOT}/var/lib/systemd/timesync ]]; then
rm "${EROOT}/var/lib/systemd/timesync"
fi
eerror "systemd again."
eerror
fi
-
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- elog "To enable a useful set of services, run the following:"
- elog " systemctl preset-all"
- fi
}
pkg_prerm() {