summaryrefslogtreecommitdiffstats
path: root/core/modules/systemd-distro/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/systemd-distro/module.build')
-rw-r--r--core/modules/systemd-distro/module.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/systemd-distro/module.build b/core/modules/systemd-distro/module.build
index 5c2dd958..a2d65c66 100644
--- a/core/modules/systemd-distro/module.build
+++ b/core/modules/systemd-distro/module.build
@@ -12,6 +12,12 @@ build () {
[ -e "$COPYLIST" ] && rm "$COPYLIST"
list_packet_files >> "$COPYLIST"
tarcopy "$(cat "$COPYLIST" | sort -u)" "$MODULE_BUILD_DIR"
+ mkdir -p "${MODULE_BUILD_DIR}/etc/systemd/system"
+ for svc in kexec reboot poweroff halt; do
+ sed 's/umount\.target//' "${MODULE_BUILD_DIR}/lib/systemd/system/systemd-${svc}.service" \
+ > "${MODULE_BUILD_DIR}/etc/systemd/system/systemd-${svc}.service" \
+ || perror "Could not remove umount.target from $svc"
+ done
}
post_copy() {