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>
This commit is contained in:
committed by
GitHub
parent
481a79eb28
commit
a8bad54efc
@@ -5,7 +5,7 @@ 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
|
||||
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
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ Before=mnt-data.mount
|
||||
RefuseManualStart=true
|
||||
RefuseManualStop=true
|
||||
Requires=dev-disk-by\x2dlabel-hassos\x2ddata.device
|
||||
After=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
|
||||
|
||||
@@ -3,6 +3,8 @@ Description=HassOS boot partition
|
||||
DefaultDependencies=no
|
||||
Before=umount.target local-fs.target
|
||||
Conflicts=umount.target
|
||||
After=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2dboot.service
|
||||
Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2dboot.service
|
||||
|
||||
[Mount]
|
||||
What=/dev/disk/by-label/hassos-boot
|
||||
|
||||
@@ -5,6 +5,8 @@ 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
|
||||
|
||||
@@ -3,6 +3,8 @@ Description=HassOS overlay partition
|
||||
DefaultDependencies=no
|
||||
Before=umount.target local-fs.target
|
||||
Conflicts=umount.target
|
||||
After=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2doverlay.service
|
||||
Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2doverlay.service
|
||||
|
||||
[Mount]
|
||||
What=/dev/disk/by-label/hassos-overlay
|
||||
|
||||
Reference in New Issue
Block a user