* automatically fsck to repair partitions * add fsck.fat so rpi boot partition can be repaired * Use Wants= instead of Requires= Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch> * add dosfstools to all images * run hassos-data and hassos-expand after fsck Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
18 lines
497 B
Desktop File
18 lines
497 B
Desktop File
[Unit]
|
|
Description=HassOS data partition
|
|
DefaultDependencies=no
|
|
RefuseManualStart=true
|
|
RefuseManualStop=true
|
|
Requires=mnt-overlay.mount dev-disk-by\x2dlabel-hassos\x2ddata.device
|
|
Wants=hassos-expand.service
|
|
After=mnt-overlay.mount dev-disk-by\x2dlabel-hassos\x2ddata.device systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
|
|
Before=hassos-expand.service
|
|
ConditionPathExists=/mnt/overlay/data.opt
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/libexec/hassos-data
|
|
|
|
[Install]
|
|
WantedBy=local-fs.target
|