Files
operating-system/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mnt-data.mount
Aman Gupta Karmani a8bad54efc automatically fsck to repair issues after an unclean shutdown (#938)
* 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>
2020-10-30 21:52:24 +01:00

18 lines
414 B
SYSTEMD

[Unit]
Description=HassOS data partition
Wants=hassos-expand.service
DefaultDependencies=no
After=hassos-expand.service
Before=umount.target local-fs.target
Conflicts=umount.target
After=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
[Mount]
What=/dev/disk/by-label/hassos-data
Where=/mnt/data
Type=ext4
[Install]
WantedBy=local-fs.target