Bug 468048

Summary: Not supplying the --name option gives an error
Product: [Fedora] Fedora Reporter: Bryan Kearney <bkearney>
Component: appliance-toolsAssignee: David Huff <dhuff>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: dhuff
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-01 16:44:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Kearney 2008-10-22 15:10:54 UTC
Call Appliance creator without a --name parameter (e.g. only pass in --cache and --config) and the following error occurs:

grub> setup --stage2=/var/tmp/imgcreate-lvCTim/install_root/boot/grub/stage2 --prefix=/boot/grub  (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
 Running "install --stage2=/var/tmp/imgcreate-lvCTim/install_root/boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/grub.conf "... succeeded
Done.
grub> quit
Traceback (most recent call last):
  File "/usr/bin/appliance-creator", line 127, in <module>
    sys.exit(main())
  File "/usr/bin/appliance-creator", line 117, in main
    creator.package(destdir)    
UnboundLocalError: local variable 'destdir' referenced before assignment
[root@localhost resources]# which appliance-creator
/usr/bin/appliance-creator

Comment 1 David Huff 2008-10-22 17:13:04 UTC
arrrr.... this looks to be a bug in the new feature I added to use the /whole/name/as/destdir

What version are you using? latest f9 rpm? appliance-tools-002-3.fc9.noarch

-D

Comment 2 David Huff 2008-12-01 16:44:53 UTC
Fixed in latest version