blob: d735d992a80bdb8d315a453c2230a30bf50d27c9 [file] [log] [blame]
Jan Kundrátb425ea82017-10-19 17:56:36 +02001[Unit]
2Description=Restore /etc from the Persistent config
3DefaultDependencies=no
4Conflicts=umount.target
5Before=local-fs.target umount.target
Jan Kundrát5a0f5922017-11-02 18:34:14 +01006After=cfg.mount etc-overlay.service
Jan Kundrát0331eac2017-10-25 13:53:34 +02007Requires=cfg.mount etc-overlay.service
Jan Kundrátb425ea82017-10-19 17:56:36 +02008ConditionDirectoryNotEmpty=/cfg/etc
9
10[Service]
11Type=oneshot
12ExecStart=/bin/sh -c 'cp -a /cfg/etc/* /etc/'