Hide Forgot
Description of problem: Currently appliance-creator is trying to install grub on the image using the /sbin/grub binary located on host system. This will fail, because there is no grub package installed on Fedora 16. Fedora 16 by default uses Grub2. Version-Release number of selected component (if applicable): appliance-tools-005-1.fc16.noarch How reproducible: Always. Steps to Reproduce: 1. Build an image. Actual results: Please note that the formatting is a bit different compared to plain appliance-creator output because it's BoxGrinder's output. D, [2011-10-08T05:49:53.655400 #20063] DEBUG -- : device (hd0) /dev/loop0 D, [2011-10-08T05:49:53.656442 #20063] DEBUG -- : Traceback (most recent call last): D, [2011-10-08T05:49:53.701207 #20063] DEBUG -- : root (hd0,0) D, [2011-10-08T05:49:53.702104 #20063] DEBUG -- : File "/usr/bin/appliance-creator", line 164, in <module> D, [2011-10-08T05:49:53.702996 #20063] DEBUG -- : setup --stage2=/root/appliances/build/appliances/x86_64/fedora/15/f15-basic/1.0/fedora-plugin/tmp/imgcreate-JG2gB5/install_root/boot/grub/stage2 --prefix=/boot/grub (hd0) D, [2011-10-08T05:49:53.704122 #20063] DEBUG -- : quit D, [2011-10-08T05:49:53.705052 #20063] DEBUG -- : D, [2011-10-08T05:49:53.734870 #20063] DEBUG -- : sys.exit(main()) D, [2011-10-08T05:49:53.735575 #20063] DEBUG -- : File "/usr/bin/appliance-creator", line 150, in main D, [2011-10-08T05:49:53.736097 #20063] DEBUG -- : creator.configure() D, [2011-10-08T05:49:53.736355 #20063] DEBUG -- : File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 718, in configure D, [2011-10-08T05:49:53.760017 #20063] DEBUG -- : self._create_bootconfig() D, [2011-10-08T05:49:53.760516 #20063] DEBUG -- : File "/usr/lib/python2.7/site-packages/appcreate/appliance.py", line 293, in _create_bootconfig D, [2011-10-08T05:49:53.773166 #20063] DEBUG -- : self._install_grub() D, [2011-10-08T05:49:53.773442 #20063] DEBUG -- : File "/usr/lib/python2.7/site-packages/appcreate/appliance.py", line 283, in _install_grub D, [2011-10-08T05:49:53.773733 #20063] DEBUG -- : grub = subprocess.Popen(["/sbin/grub", "--batch", "--no-floppy"], stdin=subprocess.PIPE) D, [2011-10-08T05:49:53.773928 #20063] DEBUG -- : File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__ D, [2011-10-08T05:49:53.775800 #20063] DEBUG -- : errread, errwrite) D, [2011-10-08T05:49:53.775998 #20063] DEBUG -- : File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child D, [2011-10-08T05:49:53.776181 #20063] DEBUG -- : raise child_exception D, [2011-10-08T05:49:53.776509 #20063] DEBUG -- : OSError: [Errno 2] No such file or directory D, [2011-10-08T05:49:54.009820 #20063] DEBUG -- : Unmounting directory /root/appliances/build/appliances/x86_64/fedora/15/f15-basic/1.0/fedora-plugin/tmp/imgcreate-JG2gB5/install_root/ D, [2011-10-08T05:49:54.109966 #20063] DEBUG -- : Removing compat symlinks D, [2011-10-08T05:49:54.111369 #20063] DEBUG -- : Unmapping /dev/loop0 D, [2011-10-08T05:49:54.203465 #20063] DEBUG -- : Losetup remove /dev/loop0 Expected results: Build finishes successfully.
After fixing bug 744390 - the issue is no longer relevant.