WIP don't exit if removing partitions fail, it fails on empty media
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 3 Oct 2023 10:52:59 +0000 (12:52 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 3 Oct 2023 10:52:59 +0000 (12:52 +0200)
Change-Id: I2740dc5ede600e5e5c20c3da288f6c1308469a4f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/tizen/sd_fusing.py

index cd2d073..705bc44 100755 (executable)
@@ -403,7 +403,6 @@ def mkpart(args, target):
         proc = subprocess.run(argv)
         if proc.returncode != 0:
             logging.error(f"Failed to remove the old partitions from {Device}")
-            sys.exit(1)
     else:
         logging.info("Removing old partition table")
         argv = ['dd', 'if=/dev/zero', 'of=' + Device,