From 1165a1e6eeb863d8eac16421cb1b5a2d761998a4 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 17 Apr 2018 18:36:03 +0200 Subject: [PATCH] TT#35642 Disable systemd-tmpfiles-clean.timer The message `Started Cleanup of Temporary Directories` shows up during deployment, caused by systemd-tmpfiles-clean.timer which originally looks like: [Timer] OnBootSec=15min OnUnitActiveSec=1d To avoid this message to appear during deployment stage let's disable the systemd timer by masking it. NOTE: we might disable this timer on default Grml, but this needs to be discussed yet in further detail and we need a faster workaround anyway. Thanks: Guillem Jover for the suggestion to just mask it Change-Id: Ic85dc58322280f4eaece61af220ae00c64c74e52 --- templates/scripts/includes/deployment.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index 761b46f..b984914 100644 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -153,6 +153,11 @@ loadNfsIpArray() { [ "$n" == "7" ] && return 0 || return 1 } +disable_systemd_tmpfiles_clean() { + einfo "Disabling systemd-tmpfiles-clean.timer" + systemctl mask systemd-tmpfiles-clean.timer ; eend $? +} + debootstrap_sipwise_key() { mkdir -p /etc/debootstrap/pre-scripts/ cat > /etc/debootstrap/pre-scripts/install-sipwise-key.sh << EOF @@ -348,6 +353,8 @@ if checkBootParam debugmode ; then enable_trace fi +disable_systemd_tmpfiles_clean + if checkBootParam targetdisk ; then TARGET_DISK=$(getBootParam targetdisk) fi