mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 15:36:29 +00:00
When we write the update to the boot partiton, there is nothing which makes sure that data is written to disk. This leaves a rather large window (probably around 30s) where a machine reset/poweroff can lead to a corrupted boot partition. Use the sync mount option to minimize the corruption window. Note that sync is not ideal for flash drives normally. But since we write very little and typically only on OS update to the boot partition, this shouldn't be a problem.
This commit is contained in:
parent
4255425b93
commit
323f415fa8
@ -10,6 +10,7 @@ Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2dboot.service
|
|||||||
What=/dev/disk/by-label/hassos-boot
|
What=/dev/disk/by-label/hassos-boot
|
||||||
Where=/mnt/boot
|
Where=/mnt/boot
|
||||||
Type=auto
|
Type=auto
|
||||||
|
Options=sync
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=local-fs.target
|
WantedBy=local-fs.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user