Bug 517841

Summary: livecd-creator -b gives "IOError: [Errno 28] No space left on device"
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: livecd-toolsAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: katzj
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: 2009-08-17 13:52:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jens Petersen 2009-08-17 13:02:17 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
$ sudo livecd-creator -b desktop-i386-20090813.16.iso -c work/spin-kickstarts/HEAD/fedora-livecd-desktop.ks
  
Actual results:
mount: block device /dev/loop3 is write-protected, mounting read-only
Traceback (most recent call last):
  File "/usr/bin/livecd-creator", line 140, in <module>
    sys.exit(main())
  File "/usr/bin/livecd-creator", line 122, in main
    creator.mount(options.base_on, options.cachedir)
  File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 510, in mount
    self._mount_instroot(base_on)
  File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 180, in _mount_instroot
    LoopImageCreator._mount_instroot(self, base_on)
  File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 922, in _mount_instroot
    self._base_on(base_on)
  File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 174, in _base_on
    shutil.copyfile(os_image, self._image)
  File "/usr/lib/python2.6/shutil.py", line 54, in copyfile
    copyfileobj(fsrc, fdst)
  File "/usr/lib/python2.6/shutil.py", line 30, in copyfileobj
    fdst.write(buf)
IOError: [Errno 28] No space left on device
[petersen@localhost ~]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       6567456   3442148   3058588  53% /
/dev/sda1               198337     15065    173032   9% /boot
tmpfs                   239232       756    238476   1% /dev/shm

Expected results:
success or more meaningful error

Comment 1 Jeremy Katz 2009-08-17 13:52:41 UTC
The regular live images have a 3 GB ext3fs.img -- with base-on, we have to copy that out for you to make modifications to it.  You don't have that much disk space free

But added a catch of the exception to make it a little more clear in the future