Bug 468048 - Not supplying the --name option gives an error
Not supplying the --name option gives an error
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: appliance-tools (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: David Huff
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-22 11:10 EDT by Bryan Kearney
Modified: 2008-12-01 11:46 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-12-01 11:44:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bryan Kearney 2008-10-22 11:10:54 EDT
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 13:13:04 EDT
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 11:44:53 EST
Fixed in latest version

Note You need to log in before you can comment on or make changes to this bug.