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 <gjover@sipwise.com> for the suggestion to just mask it
Change-Id: Ic85dc58322280f4eaece61af220ae00c64c74e52
changes/76/20576/3
Michael Prokop 8 years ago
parent 3df7e7b04e
commit 1165a1e6ee

@ -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

Loading…
Cancel
Save