[Fedora-livecd-list] livecd-creator on RHEL5/FC6

Mark McLoughlin markmc at redhat.com
Wed Jan 23 13:22:58 UTC 2008


On Wed, 2008-01-23 at 10:37 +0000, Mark McLoughlin wrote:
> On Wed, 2008-01-23 at 00:47 +0530, Rahul Sundaram wrote:
> >    File "//usr/lib/python2.4/site-packages/imgcreate/fs.py", line 178, in expand
> >      fd = os.open(self.lofile, flags)
> > OSError: [Errno 20] Not a directory: '/var/tmp/imgcreate-oWHPY1/iso-GPC7L3/LiveOS/osmin'
> 
> 	This is a different error from the one you were seeing. The error you
> were seeing didn't happen in this run.
> 
> 	And this error is just as nonsensical as the last. Basically:
> 
>   - open() failed with ENOTDIR, meaning that e.g. LiveOS is a file, not 
>     a directory
> 
>   - yet, we've just run mkdir() with that same directory path, which 
>     should have failed with ENOTDIR too, if that was really the case

	mkdir() fails with EEXIST, rather than ENOTDIR, if the last component
of the path is a regular file.

	The problem is your kickstart:

  if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
    cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS
  fi

	Try:

  if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
    mkdir -p $LIVE_ROOT/LiveOS/
    cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS/
  fi

Cheers,
Mark.




More information about the Fedora-livecd-list mailing list