teach jeos_create about the debug option.

Now this command produces lots of output (nice for debugging):
sudo heat -d jeos_create F16 x86_64

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2012-03-21 22:27:14 +11:00
parent 175fa18831
commit 68d8778cca
1 changed files with 5 additions and 1 deletions

View File

@ -245,7 +245,11 @@ def jeos_create(options, arguments):
sys.exit(1)
print 'Creating JEOS image - this takes approximately 10 minutes.'
res = os.system("oz-install -t 50000 -u %s" % tdl_path)
extra_opts = ' '
if options.debug:
extra_opts = ' -d 3 '
res = os.system("oz-install %s -t 50000 -u %s" % (extra_opts, tdl_path))
if res == 256:
sys.exit(1)
if not os.access(dsk_filename, os.R_OK):