[systemd-devel] Check if systems is container in "systemd-remount-fs.service"

Lennart Poettering lennart at poettering.net
Wed Apr 8 14:55:31 PDT 2015


On Tue, 17.03.15 10:54, Peter Paule (systemd-devel at fedux.org) wrote:

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

Why? I mean, we should apply /etc/fstab if it is configured. 

What's the rationale for your proposed change?

> 
> [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
> 
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list