mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Ensure haos-wipe service can be called only once per boot (#3924)
In some cases, the wipe service may be called due to a race condition for the second time during the boot, very likely failing because the filesystems are already mounted. This can not be reproduced on OVA but can be fairly easy triggered e.g. on RPi. As we want the service to be executed exactly only once, we can do what's suggested in [1] and set the RemainAfterExit=yes. That should ensure the unit is not ever started for the second time. [1] https://www.github.com/systemd/systemd/issues/29367 (cherry picked from commit 24640c11aeb89290f7a1ecfd0c8c6527f8523e27)
This commit is contained in:
parent
7e6e4119a7
commit
a4190754fe
@ -10,6 +10,7 @@ ConditionKernelCommandLine=haos.wipe=1
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/libexec/haos-wipe
|
||||
|
||||
[Install]
|
||||
|
Loading…
x
Reference in New Issue
Block a user