diff --git a/imgutil/imgutil b/imgutil/imgutil index f777f00a..a8ec96e4 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -797,7 +797,8 @@ class DebHandler(OsHandler): if rc: sys.stderr.write('{0} failed with exit code {1}\n'.format( ' '.join(cmd), rc)) - raise SystemExit(rc) + # not SystemExit, run_constrained would turn it into success + raise Exception('apt failed in image') def prep_root(self, args): mkdirp(os.path.join(self.targpath, 'etc/apt'))