Files
os/image/mkosi.extra/usr/lib/systemd/system/sf-data-init.service
2026-10-24 09:06:06 +02:00

19 lines
554 B
Desktop File

[Unit]
Description=SmartFox: fill the new data partition (/var) with the factory defaults
Documentation=file:/usr/lib/repart.d/50-sf-data.conf
DefaultDependencies=no
RequiresMountsFor=/var
ConditionPathIsMountPoint=/var
ConditionPathExists=!/var/.sf-data
After=local-fs.target
Before=sysinit.target systemd-tmpfiles-setup.service systemd-journal-flush.service systemd-random-seed.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/cp -a /usr/share/factory/var/. /var/
ExecStart=/bin/touch /var/.sf-data
[Install]
WantedBy=sysinit.target