diff options
author | Simon Rettberg | 2020-08-05 15:36:39 +0200 |
---|---|---|
committer | Your Name | 2020-08-05 15:36:39 +0200 |
commit | 4825f300e09ff273571c33899078c1552aa8417b (patch) | |
tree | 0da7c7d0ae33217ea1197ae03a878db42e100539 /core/modules/systemd-distro | |
parent | [kexec-reboot] Add vga=current to prevent black screen (diff) | |
download | mltk-4825f300e09ff273571c33899078c1552aa8417b.tar.gz mltk-4825f300e09ff273571c33899078c1552aa8417b.tar.xz mltk-4825f300e09ff273571c33899078c1552aa8417b.zip |
[systemd-distro] Remove umount.target dependency from reboot/poweroff etc
Diffstat (limited to 'core/modules/systemd-distro')
-rw-r--r-- | core/modules/systemd-distro/module.build | 6 |
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() { |