blob: 3af78faa50690e765019a9a343d8618cea9cf97d [file] [log] [blame]
Jan Kundrát01cbcd62017-10-19 14:08:05 +02001[Unit]
2Description=Overlay filesystem over /etc
3DefaultDependencies=no
4Conflicts=umount.target
Jan Kundrát296d7cf2018-06-14 15:52:46 +02005Before=local-fs.target umount.target systemd-networkd.service
Jan Kundrát01cbcd62017-10-19 14:08:05 +02006After=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