Fixes: https://bugs.gentoo.org/show_bug.cgi?id=449102 --- gx86/sys-apps/systemd/systemd-9999.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/gx86/sys-apps/systemd/systemd-9999.ebuild b/gx86/sys-apps/systemd/systemd-9999.ebuild index ae3feb7..42f1cef 100644 --- a/gx86/sys-apps/systemd/systemd-9999.ebuild +++ b/gx86/sys-apps/systemd/systemd-9999.ebuild @@ -205,6 +205,8 @@ optfeature() { } pkg_postinst() { + systemd_update_catalog + mkdir -p "${ROOT}"/run || ewarn "Unable to mkdir /run, this could mean trouble." if [[ ! -L "${ROOT}"/etc/mtab ]]; then ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts." @@ -230,3 +232,10 @@ pkg_postinst() { ewarn " init=/sbin/init" ewarn "to your kernel to boot using sysvinit / OpenRC." } + +pkg_prerm() { + # If removing systemd completely, remove the catalog database. + if [[ ! ${REPLACED_BY_VERSION} ]]; then + rm -f -v "${EROOT}"/var/lib/systemd/catalog/database + fi +} -- 1.8.0.2