[systemd-devel] Check if systems is container in "systemd-remount-fs.service"
Peter Paule
systemd-devel at fedux.org
Tue Mar 17 02:54:54 PDT 2015
Hi,
does it make sense to check if the system is started as a container in
"systemd-remount-fs.service" and only start the service if the system
is NOT a container?
[Unit]
Description=Remount Root and Kernel File Systems
Documentation=man:systemd-remount-fs.service(8)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-fsck-root.service
Before=local-fs-pre.target local-fs.target shutdown.target
Wants=local-fs-pre.target
ConditionPathExists=/etc/fstab
ConditionVirtualization=!container
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-remount-fs
/pp
More information about the systemd-devel
mailing list