From d085d6d8192d65ee7033d31d90405ebc8a31e40a Mon Sep 17 00:00:00 2001 From: Paul Whalen Date: Nov 27 2023 20:30:29 +0000 Subject: Undo rpm scripts enabling units, use only systemd presets Signed-off-by: Paul Whalen --- diff --git a/treecompose-post.sh b/treecompose-post.sh index 08dd6ca..a47d8cf 100755 --- a/treecompose-post.sh +++ b/treecompose-post.sh @@ -20,3 +20,10 @@ done # Will be obsolete once we start using bootupd # See - https://pagure.io/workstation-ostree-config/pull-request/344 rm -rf /usr/lib/ostree-boot/loader + +# Undo RPM scripts enabling units; we want the presets to be canonical +# https://github.com/projectatomic/rpm-ostree/issues/1803 +rm -rf /etc/systemd/system/* +systemctl preset-all +rm -rf /etc/systemd/user/* +systemctl --user --global preset-all