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

implement partiton table deletion

This commit is contained in:
Jan Schneider
2018-03-31 10:22:40 +02:00
parent 513e22dbf6
commit 32e38df0a9
3 changed files with 53 additions and 0 deletions

View File

@@ -393,6 +393,10 @@ proc ::rmupdate::get_partion_start_end_and_size {device partition} {
return $res
}
proc ::rmupdate::delete_partition_table {device} {
exec /bin/dd if=/dev/zero of=$device bs=512 count=1 2>/dev/null
}
proc ::rmupdate::is_system_upgradeable {} {
set sys_dev [get_system_device]
#if { [get_filesystem_label $sys_dev 2] != "rootfs1" } {