Jan Kundrát | b425ea8 | 2017-10-19 17:56:36 +0200 | [diff] [blame] | 1 | [Unit] |
2 | Description=Restore /etc from the Persistent config | ||||
3 | DefaultDependencies=no | ||||
4 | Conflicts=umount.target | ||||
5 | Before=local-fs.target umount.target | ||||
Jan Kundrát | 0331eac | 2017-10-25 13:53:34 +0200 | [diff] [blame] | 6 | After=cfg.mount |
7 | Requires=cfg.mount etc-overlay.service | ||||
Jan Kundrát | b425ea8 | 2017-10-19 17:56:36 +0200 | [diff] [blame] | 8 | ConditionDirectoryNotEmpty=/cfg/etc |
9 | |||||
10 | [Service] | ||||
11 | Type=oneshot | ||||
12 | ExecStart=/bin/sh -c 'cp -a /cfg/etc/* /etc/' |