1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2025-12-20 02:18:37 +00:00

Yellow: Support wipeing boot files on NVMe (#2173)

This commit is contained in:
Stefan Agner
2022-10-06 23:49:47 +02:00
parent e1236751b6
commit f25a44160a

View File

@@ -26,7 +26,7 @@ if gpio input GPIO27; then
# ... and Blue Button Pressed? # ... and Blue Button Pressed?
if gpio input GPIO26; then if gpio input GPIO26; then
echo "Boot wipe has been pressed, deleting boot files to trigger USB boot..." echo "Boot wipe has been pressed, deleting boot files to trigger USB boot..."
fatrm mmc 0:1 /start4.elf fatrm ${devtype} ${devnum}:1 /start4.elf
reset reset
fi fi
# Red still pressed? # Red still pressed?
@@ -35,7 +35,7 @@ if gpio input GPIO27; then
setenv bootargs_hassos "${bootargs_hassos} haos.wipe=1" setenv bootargs_hassos "${bootargs_hassos} haos.wipe=1"
fi fi
elif gpio input GPIO26; then elif gpio input GPIO26; then
ums 0 mmc 0 ums 0 ${devtype} ${devnum}
fi fi
# HassOS system A/B # HassOS system A/B