summaryrefslogtreecommitdiffstats
path: root/core/modules/safe-mode
diff options
context:
space:
mode:
authorJonathan Bauer2020-10-26 13:51:08 +0100
committerJonathan Bauer2020-10-26 13:51:08 +0100
commit1267a30db4734e68305ca0425c41740f28651b11 (patch)
treec7735f14c8a5336b9b6a11cf19cbc0b3552947ad /core/modules/safe-mode
parent[ntfsfree] Fix size in log message (diff)
downloadmltk-1267a30db4734e68305ca0425c41740f28651b11.tar.gz
mltk-1267a30db4734e68305ca0425c41740f28651b11.tar.xz
mltk-1267a30db4734e68305ca0425c41740f28651b11.zip
[safe-mode] mask ctrl-alt-del.target
'systemctl show -p FragmentPath' seems to resolve symlinks, thus we cannot use it to find the path of the ctrl-alt-del.target symlink. Using a hardcoded path was also just bad.
Diffstat (limited to 'core/modules/safe-mode')
-rwxr-xr-xcore/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode
index a475fadf..f06823f3 100755
--- a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode
+++ b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode
@@ -31,7 +31,7 @@ EOF
systemd_config() {
# Disable ctrl-alt-delete
- rm -- "/usr/lib/systemd/system/ctrl-alt-del.target"
+ systemctl mask --no-block ctrl-alt-del.target
# No idleaction
rm -- "/etc/cron.d/openslx-idleaction"
# Ignore everything but power button, no VTs