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