mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
use mkimage from updated firmware
This commit is contained in:
parent
30b7317fee
commit
41a1c26497
@ -460,7 +460,11 @@ proc ::rmupdate::update_boot_scr {boot_scr root} {
|
||||
puts $fd $data
|
||||
close $fd
|
||||
|
||||
exec /usr/bin/mkimage -C none -A arm -T script -d $boot_script $boot_scr
|
||||
set mkimage "/tmp/mkimage"
|
||||
if {![file exists $mkimage]} {
|
||||
set mkimage "/usr/bin/mkimage"
|
||||
}
|
||||
exec $mkimage -C none -A arm -T script -d $boot_script $boot_scr
|
||||
|
||||
file delete $boot_script
|
||||
}
|
||||
@ -703,6 +707,12 @@ proc ::rmupdate::update_filesystems {image {dryrun 0}} {
|
||||
write_log 4 [exec ls -la ${mnt_s}]
|
||||
}
|
||||
|
||||
if {$img_partition == 2} {
|
||||
if {![file exists "/usr/bin/mkimage"] && [file exists "${mnt_s}/usr/bin/mkimage"]} {
|
||||
file copy -force ${mnt_s}/usr/bin/mkimage /tmp/mkimage
|
||||
}
|
||||
}
|
||||
|
||||
if {$img_partition == 1} {
|
||||
write_install_log "Updating boot configuration."
|
||||
if {!$dryrun} {
|
||||
|
Loading…
Reference in New Issue
Block a user