WIP: report problems with sfdisk(8)
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 19 Sep 2023 15:01:00 +0000 (17:01 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 20 Sep 2023 12:15:01 +0000 (14:15 +0200)
Change-Id: If69109b1d814f490c2650b6e1573ac77bf02649a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/tizen/sd_fusing.py

index 61ebcf4..db846c2 100755 (executable)
@@ -158,6 +158,11 @@ def mkpart(args):
                           stdout=None,
                           stderr=None,
                           input=str(target.label).encode())
+    if proc.returncode != 0:
+        logging.error(f"Failed to create partition a new table on {Device}")
+        logging.error(f"New partition table:\n" + str(target.label))
+        sys.exit(1)
+    #TODO: mkfs
 
 def check_args(args):
     global Format