Browse Source

Use returncode of genisofs as own returncode

Sebastian Lohff 2 years ago
parent
commit
577b857d81
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      genconfdrv

+ 3
- 2
genconfdrv View File

@@ -218,7 +218,7 @@ class ConfigDrive:
218 218
                               self._tmpfs.getsyspath(""),
219 219
                               ])
220 220
 
221
-        p.wait()
221
+        return p.wait()
222 222
 
223 223
     def close(self):
224 224
         if self._tmpfs:
@@ -308,7 +308,8 @@ def main():
308 308
                 cfgdrv.add_user(user[0], keys, sudo=sudo, gecos=gecos, password=password)
309 309
 
310 310
         if args.output:
311
-            cfgdrv.write_iso(args.output)
311
+            ret = cfgdrv.write_iso(args.output)
312
+            sys.exit(ret)
312 313
     finally:
313 314
         if cfgdrv:
314 315
             cfgdrv.close()

Loading…
Cancel
Save