Merge pull request #10068 from vpeter4/init_md5

init: update md5 files on /flash
This commit is contained in:
Christian Hewitt 2025-05-22 15:37:17 +04:00 committed by GitHub
commit 74d5a60566
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -911,12 +911,16 @@ check_update() {
# all ok, update # all ok, update
if [ -b "/$IMAGE_KERNEL" ]; then if [ -b "/$IMAGE_KERNEL" ]; then
update_partition "Kernel" "$UPDATE_KERNEL" "/$IMAGE_KERNEL" update_partition "Kernel " "${UPDATE_KERNEL}" "/${IMAGE_KERNEL}"
update_partition "Kernel md5" "${UPDATE_KERNEL}.md5" "/${IMAGE_KERNEL}.md5"
else else
update_file "Kernel" "$UPDATE_KERNEL" "/flash/$IMAGE_KERNEL" update_file "Kernel " "${UPDATE_KERNEL}" "/flash/${IMAGE_KERNEL}"
update_file "Kernel md5" "${UPDATE_KERNEL}.md5" "/flash/${IMAGE_KERNEL}.md5"
fi fi
umount /sysroot umount /sysroot
update_file "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM" update_file "System " "${UPDATE_SYSTEM}" "/flash/${IMAGE_SYSTEM}"
update_file "System md5" "${UPDATE_KERNEL}.md5" "/flash/${IMAGE_SYSTEM}.md5"
update_bootloader update_bootloader
do_cleanup do_cleanup
do_reboot do_reboot