mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
[install_fw] Fix check readonly flag for target partition
This commit is contained in:
+3
-3
@@ -939,9 +939,9 @@ class XqFlash():
|
||||
fw_img.cmd = 'mtd -e "{part}" write "{bin}" "{part}"'.format(part=fw_img.partname, bin=fw_img.fn_remote)
|
||||
kernel.cmd = None
|
||||
rootfs.cmd = None
|
||||
if 'ro' not in fw_part:
|
||||
die(f'Cannot get readonly flag for partition "{fw_img.partname}"')
|
||||
if fw_part['ro']:
|
||||
#if 'ro' not in fw_part:
|
||||
# die(f'Cannot get readonly flag for partition "{fw_img.partname}"')
|
||||
if 'ro' in fw_part and fw_part['ro'] == True:
|
||||
die(f'Target partition "{fw_img.partname}" has readonly flag')
|
||||
|
||||
self.save_all_images(req_cmd = True, prefix = "")
|
||||
|
||||
Reference in New Issue
Block a user