Red Hat Bugzilla – Bug 465988
Incomplete partition info throws an ugly error
Last modified: 2008-11-22 11:58:35 EST
Description of problem:
partition commands with no --fstype or --ondisk throws an ugly stack trace (see below). At a minimum, this should be an easy to debug error. Best case is that the tool would calculate the correct size and disk option to be used.
Run the appliance creator with a kickstart file with the following line:
part / --size 500
See the stack trace:
Warning: The kernel was unable to re-read the partition table on /dev/loop2 (Invalid argument). This means Linux won't know anything about the modifications you made until you reboot. You should reboot your computer before doing anything with /dev/loop2.
Traceback (most recent call last):
File "/usr/bin/appliance-creator", line 122, in <module>
File "/usr/bin/appliance-creator", line 108, in main
File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 503, in mount
File "/usr/lib/python2.5/site-packages/appcreate/appliance.py", line 143, in _mount_instroot
File "/usr/lib/python2.5/site-packages/appcreate/partitionedfs.py", line 246, in mount
File "/usr/lib/python2.5/site-packages/appcreate/fs.py", line 257, in mount
File "/usr/lib/python2.5/site-packages/appcreate/fs.py", line 254, in __create
File "/usr/lib/python2.5/site-packages/appcreate/fs.py", line 219, in __format_filesystem
File "/usr/lib/python2.5/subprocess.py", line 443, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.5/subprocess.py", line 593, in __init__
File "/usr/lib/python2.5/subprocess.py", line 1079, in _execute_child
OSError: [Errno 2] No such file or directory
appliance-tools-003-6.fc10 has been submitted as an update for Fedora 10.
appliance-tools-003.7-1.fc10 has been submitted as an update for Fedora 10.
appliance-tools-003.9-1.fc10 has been submitted as an update for Fedora 10.
appliance-tools-003.9-1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.