'create, chroot, convert' and also some parameters for command 'mic'.
"""
import os
+ import signal
import sys
import errno
return True
return False
+ def sigterm_handler(signal, frame):
+ raise errors.Abort('\nSIGTERM catched, program aborted.')
+
+ # Add SIGTERM handler for exit gracefully
+ signal.signal(signal.SIGTERM, sigterm_handler)
+
# Create top level parser
epilog = "Try 'mic SUBCOMMAND --help' for help on a specific subcommand."
description = "mic - the Image Creation tool"
if args.debug:
try:
import rpm
- rpm.setVerbosity(rpm.RPMLOG_NOTICE)
+ rpm.setVerbosity(rpm.RPMLOG_DEBUG)
except ImportError:
pass