mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 06:56:29 +00:00
Fix path to cmdline after successful RPi 5 tryboot (#3085)
Path to cmdline is set in tryboot.txt to cmdline-tryboot.txt before attempting A/B boot. After successful boot, tryboot.txt is relocated to config.txt, yet the config path of cmdline is not changed and remains set to cmdline-tryboot.txt which doesn't exist anymore at that point, causing following reboots to fail. Fixes #3065
This commit is contained in:
parent
e7c15f9aa6
commit
bde080336e
@ -81,8 +81,10 @@ case "$1" in
|
||||
exit 1
|
||||
fi
|
||||
echo "Committing tryboot state to primary boot" >&2
|
||||
mv "${boot_dir}/tryboot.txt" "${boot_dir}/config.txt"
|
||||
sed -e "s/^\(cmdline=\).*$/\1\/cmdline.txt/" \
|
||||
"${boot_dir}/tryboot.txt" > "${boot_dir}/config.txt"
|
||||
mv "${boot_dir}/cmdline-tryboot.txt" "${boot_dir}/cmdline.txt"
|
||||
rm "${boot_dir}/tryboot.txt"
|
||||
fi
|
||||
;;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user