1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Fix namespace

This commit is contained in:
Jan Schneider 2017-08-01 08:08:00 +02:00
parent 8a102584f0
commit fde46d3412

View File

@ -121,10 +121,10 @@ proc ::rmupdate::get_partion_start_and_size {device partition} {
proc ::rmupdate::is_system_upgradeable {} { proc ::rmupdate::is_system_upgradeable {} {
variable sys_dev variable sys_dev
#if { [libfirmware::get_filesystem_label "${sys_dev}p2"] != "rootfs1" } { #if { [rmupdate::get_filesystem_label "${sys_dev}p2"] != "rootfs1" } {
# return 0 # return 0
#} #}
if { [libfirmware::get_filesystem_label "${sys_dev}p3"] != "rootfs2" } { if { [rmupdate::get_filesystem_label "${sys_dev}p3"] != "rootfs2" } {
return 0 return 0
} }
return 1 return 1
@ -382,7 +382,7 @@ proc ::rmupdate::update_filesystems {image {dryrun 0}} {
if {$root_partition == 2} { if {$root_partition == 2} {
set new_root_partition 3 set new_root_partition 3
} }
set part_uuid [libfirmware::get_part_uuid "${sys_dev}p${new_root_partition}"] set part_uuid [rmupdate::get_part_uuid "${sys_dev}p${new_root_partition}"]
update_cmdline "${mnt_s}/cmdline.txt" "PARTUUID=${part_uuid}" update_cmdline "${mnt_s}/cmdline.txt" "PARTUUID=${part_uuid}"
} }
} }