mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
catch blkid error to get device for error message
This commit is contained in:
parent
a685beb343
commit
de724b6784
@ -320,7 +320,12 @@ proc ::rmupdate::get_partitions {{device ""}} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set data3 ""
|
||||||
|
if [catch {
|
||||||
set data3 [exec /sbin/blkid $part_dev]
|
set data3 [exec /sbin/blkid $part_dev]
|
||||||
|
} err] {
|
||||||
|
error "Command blkid failed for device ${part_dev}: ${err}"
|
||||||
|
}
|
||||||
foreach d3 [split $data3 "\n"] {
|
foreach d3 [split $data3 "\n"] {
|
||||||
if {[regexp {LABEL="([^"]+)"} $d3 match lab]} {
|
if {[regexp {LABEL="([^"]+)"} $d3 match lab]} {
|
||||||
set partitions(${dev}::${num}::filesystem_label) $lab
|
set partitions(${dev}::${num}::filesystem_label) $lab
|
||||||
|
Loading…
Reference in New Issue
Block a user