blob: d735d992a80bdb8d315a453c2230a30bf50d27c9 [file] [log] [blame]
[Unit]
Description=Restore /etc from the Persistent config
DefaultDependencies=no
Conflicts=umount.target
Before=local-fs.target umount.target
After=cfg.mount etc-overlay.service
Requires=cfg.mount etc-overlay.service
ConditionDirectoryNotEmpty=/cfg/etc
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'cp -a /cfg/etc/* /etc/'