2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2010-09-28 23:30:41 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2010-09-28 23:30:41 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
2010-10-18 20:38:41 +00:00
|
|
|
Description=Cleanup of Temporary Directories
|
2013-04-23 07:56:32 +00:00
|
|
|
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
|
2010-09-28 23:30:41 +00:00
|
|
|
DefaultDependencies=no
|
units: make sure systemd-tmpfiles-{setup,clean} don't survive switch-root
Normally, these services are killed because we run isolate. But I booted into
emergency mode (because of a futher bug with us timing out improperly on the
luks password prompt), and then continuted to the host system by running
'systemctl start systemd-switch-root.service'. My error, but the results are
confusing and bad: systemd in the host sees 'systemd-tmpfiles-setup.service'
as started successfully, and doesn't restart it, so the setup for /tmp/.X11 is
not done and gdm.service fails. So while we wouldn't encounter this during
normal successful boot, I think it's good to make this more robust.
The dep is added to systemd-tmpfiles-{setup,clean}, because /tmp is not
propagated over switch-root. /dev is, so I didn't touch
systemd-tmpfiles-setup-dev.service.
2021-08-05 11:22:58 +00:00
|
|
|
Conflicts=shutdown.target initrd-switch-root.service
|
2018-04-30 12:05:29 +00:00
|
|
|
After=local-fs.target time-set.target
|
2014-06-19 22:15:39 +00:00
|
|
|
Before=shutdown.target
|
2010-09-28 23:30:41 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2019-12-18 08:14:57 +00:00
|
|
|
ExecStart=systemd-tmpfiles --clean
|
2019-07-28 13:00:08 +00:00
|
|
|
SuccessExitStatus=DATAERR
|
2010-10-18 20:38:41 +00:00
|
|
|
IOSchedulingClass=idle
|