* 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>
16 lines
385 B
Desktop File
16 lines
385 B
Desktop File
[Unit]
|
|
Description=HassOS data resizing
|
|
DefaultDependencies=no
|
|
Before=mnt-data.mount
|
|
RefuseManualStart=true
|
|
RefuseManualStop=true
|
|
Requires=dev-disk-by\x2dlabel-hassos\x2ddata.device
|
|
After=dev-disk-by\x2dlabel-hassos\x2ddata.device systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/libexec/hassos-expand
|
|
|
|
[Install]
|
|
WantedBy=local-fs.target
|