Bug 445625 - livecd-creator fails if /etc/lvm/cache directory is empty
livecd-creator fails if /etc/lvm/cache directory is empty
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: livecd-tools (Show other bugs)
8
i386 Linux
low Severity low
: ---
: ---
Assigned To: Jeremy Katz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-07 23:16 EDT by steve roush
Modified: 2008-05-08 11:08 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-05-08 11:08:25 EDT
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 steve roush 2008-05-07 23:16:54 EDT
Description of problem:
livecd-creator crashes if /etc/lvm/ directory does not exist.

Version-Release number of selected component (if applicable):
013-1.fc8.i386

How reproducible:
always

Steps to Reproduce:
1. Empty /etc/lvm/cache, /etc/lvm/backup, or /etc/lvm/archive directory (no
sub-files or sub-directories)
2. start livecd-creator
3. 
  
Actual results:
livecd-creator will crash

Expected results:
successful livecd run

Additional info:
I added 1 line after line 600 of livecd-creator and that seems to work (I am not
a python programmer, so it might need improving):
        for subdir in ("cache", "backup", "archive"):    ## line 600
            if os.path.isdir("%s/install_root/etc/lvm/" + subdir):   ## I added
Comment 1 Jeremy Katz 2008-05-08 11:08:25 EDT
This is fixed in Fedora 9's version of the tools which probably work on Fedora
8.  But the latter needs more testing

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