metricspi/rootfs/overlay/usr/lib/systemd/system/copy-var.service

13 lines
276 B
INI

[Unit]
Description=Copy /var contents to writable storage
DefaultDependencies=no
After=local-fs.target
Before=sysinit.target
Before=systemd-update-done.service
ConditionPathIsMountPoint=/var
ConditionNeedsUpdate=/var
[Service]
Type=oneshot
ExecStart=/usr/libexec/copy-var.sh