Commit bf5390d9 authored by intrigeri's avatar intrigeri

Give tails-remove-overlayfs-dirs.service more time to do its job (refs: #17278)

We currently set DefaultTimeoutStopSec=5s. I assume that in most cases, deleting
overlayfs directories from memory should be super fast, but I'd rather not bet
on this for security matters.
parent d17e4c6d
......@@ -17,6 +17,13 @@ DefaultDependencies=no
Type=oneshot
RemainAfterExit=yes
ExecStop=/bin/rm -rf /lib/live/mount/overlay/rw /lib/live/mount/overlay/work
# Tails sets a very small DefaultTimeoutStopSec= value, that this
# service inherits. There's a risk that this default timeout is too
# short for our ExecStop= step to complete successfully. Were this to
# happen, the impact would be incomplete erasing of memory on
# shutdown, which is not great. So let's reset this timeout to the
# default systemd one for this service.
TimeoutStopSec=90s
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment