mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-17 10:06:30 +00:00
Fix rauc hook to save and restore the grub environment (#3451)
Without a machine-id, the next boot will be considered as a first boot, and any external data disk will be disabled. Fixes #3247.
This commit is contained in:
parent
245c0d0b03
commit
33d8b538ad
@ -34,11 +34,13 @@ install_boot() {
|
||||
else
|
||||
# Backup boot config
|
||||
cp -f "${BOOT_MNT}"/*.txt "${BOOT_TMP}/" || true
|
||||
cp -f "${BOOT_MNT}"/EFI/BOOT/grubenv "${BOOT_TMP}/" || true
|
||||
|
||||
cp -rf "${BOOT_NEW}"/* "${BOOT_MNT}/"
|
||||
|
||||
# Restore boot config
|
||||
cp -f "${BOOT_TMP}"/*.txt "${BOOT_MNT}/" || true
|
||||
cp -f "${BOOT_TMP}"/grubenv "${BOOT_MNT}"/EFI/BOOT/ || true
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user