Created attachment 389865 [details] Complete output from an appliance-creator run, ending with the error. Description of problem: Running appliance creator creates an image file, installs RPMs, then fails with the error: "OSError: [Errno 2] No such file or directory" when trying to run grub to install the boot loader in the image Version-Release number of selected component (if applicable): appliance-tools-004.4-2.fc12.noarch How reproducible: Apparently, completely. Steps to Reproduce: 1. Install appliance-tools 2. Run appliance-creator (e.g: appliance-creator -n thincrust --config /usr/share/spin-kickstarts/fedora-aos.ks) 3. Actual results: Image build dies with an error (see attached log) Expected results: Image created. Additional info: Changing line 277 of /usr/lib/python2.6/site-packages/appcreate/appliance.py from: grub = subprocess.Popen(["grub", "--batch", "--no-floppy"], to: grub = subprocess.Popen(["/sbin/grub", "--batch", "--no-floppy"], appears to result in the successful creation of an image. I suspect that this is more of a hack than a fix, however. The behaviour seems to be the same on both up to date F12 and rawhide, but is absent on F11.
This is interesting, I have never seen this type of behavior before, I even made several runs this morning with no errors. I will commit your work around above, because I see no issues with using the full path for grub, and if it helps out in some cases it seems like an easy win. comments?
http://git.fedorahosted.org/git/?p=appliance-tools.git;a=commit;h=40c5516f6706862aaf6be696183fe7f541197aa8
appliance-tools-004.5-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/appliance-tools-004.5-1.fc12
I think I've worked out the source of the trouble; I'm running appliance-creator using sudo, rather than by doing 'su -' to the root account. This runs it with root privileges, but (apparently) a sanitised/broken path that doesn't include /sbin/. Running the previous release of appliance-creator from a proper root shell works fine. I've also tried running the fixed appliance-creator from appliance-tools-004.5-1 with sudo and that works too. Problem solved, I think.
appliance-tools-004.5-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update appliance-tools'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1777
appliance-tools-004.5-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.