blob: 625e72b13a14971b6a46f4f18412df0a5830ed39 [file] [log] [blame]
Jan Kundrát01cbcd62017-10-19 14:08:05 +02001[Unit]
2Description=Overlay filesystem over /etc
3DefaultDependencies=no
4Conflicts=umount.target
5Before=local-fs.target umount.target
6After=swap.target \x2eov.mount
7
8[Service]
9Type=oneshot
10ExecStart=/bin/mkdir /.ov/etc-u
11ExecStart=/bin/mkdir /.ov/etc-w
12# Moving /etc/machine-id. Cannot --move, we have to --bind.
13ExecStart=/bin/touch /.ov/etc-machine-id
14ExecStart=/bin/mount --bind /etc/machine-id /.ov/etc-machine-id
15ExecStart=/bin/umount /etc/machine-id
16ExecStart=/bin/mount overlay -t overlay /etc -olowerdir=/etc,upperdir=/.ov/etc-u,workdir=/.ov/etc-w
17ExecStart=/bin/mount --bind /.ov/etc-machine-id /etc/machine-id
18ExecStart=/bin/umount /.ov/etc-machine-id