1 |
commit: 7882a746a7db7bfd78784716746104e1ebd2454b |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 16:05:43 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 17:18:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7882a746 |
7 |
|
8 |
sys-apps/systemd: remove code to save/restore enabled units |
9 |
|
10 |
This was really only needed for a rootprefix transition. Everybody |
11 |
should have been migrated by now. |
12 |
|
13 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
14 |
|
15 |
sys-apps/systemd/systemd-9999.ebuild | 20 +------------------- |
16 |
1 file changed, 1 insertion(+), 19 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild |
19 |
index 6c3c1ef813c..8dd85417f98 100644 |
20 |
--- a/sys-apps/systemd/systemd-9999.ebuild |
21 |
+++ b/sys-apps/systemd/systemd-9999.ebuild |
22 |
@@ -437,19 +437,7 @@ migrate_locale() { |
23 |
fi |
24 |
} |
25 |
|
26 |
-save_enabled_units() { |
27 |
- ENABLED_UNITS=() |
28 |
- type systemctl &>/dev/null || return |
29 |
- for x; do |
30 |
- if systemctl --quiet --root="${ROOT:-/}" is-enabled "${x}"; then |
31 |
- ENABLED_UNITS+=( "${x}" ) |
32 |
- fi |
33 |
- done |
34 |
-} |
35 |
- |
36 |
pkg_preinst() { |
37 |
- save_enabled_units {machines,remote-{cryptsetup,fs}}.target getty@××××.service |
38 |
- |
39 |
if ! use split-usr; then |
40 |
local dir |
41 |
for dir in bin sbin lib; do |
42 |
@@ -478,16 +466,10 @@ pkg_postinst() { |
43 |
|
44 |
udev_reload || FAIL=1 |
45 |
|
46 |
- # Bug 465468, make sure locales are respect, and ensure consistency |
47 |
+ # Bug 465468, make sure locales are respected, and ensure consistency |
48 |
# between OpenRC & systemd |
49 |
migrate_locale |
50 |
|
51 |
- systemd_reenable systemd-networkd.service systemd-resolved.service |
52 |
- |
53 |
- if [[ ${ENABLED_UNITS[@]} ]]; then |
54 |
- systemctl --root="${ROOT:-/}" enable "${ENABLED_UNITS[@]}" |
55 |
- fi |
56 |
- |
57 |
if [[ -z ${REPLACING_VERSIONS} ]]; then |
58 |
if type systemctl &>/dev/null; then |
59 |
systemctl --root="${ROOT:-/}" enable getty@.service remote-fs.target || FAIL=1 |