[Fedora-livecd-list] livecd-creator on RHEL5/FC6
Rahul Sundaram
sundaram at fedoraproject.org
Thu Jan 10 08:40:52 UTC 2008
Rahul Sundaram wrote:
> Mark McLoughlin wrote:
>> Hi Rahul,
>>
>> On Tue, 2008-01-08 at 03:48 +0530, Rahul Sundaram wrote:
>>
>>> I had to patch two files for the try finally construct. The patches are
>>>
>>> http://sundaram.fedorapeople.org/livecd-creator-try-finally.patch
>>> http://sundaram.fedorapeople.org/image-creator-try-finally.patch
>>>
>>> (These patches are pretty simple but I am very much a python newbie
>>> and might be incorrect but it gets the tools to run)
>>
>> Thanks, I've folded them into the try-finally patch.
>>
>>> File "//usr/lib/python2.4/site-packages/imgcreate/kickstart.py",
>>> line 51, in read_kickstart
>>> os.chdir(dirname)
>>> OSError: [Errno 2] No such file or directory: ''
>>>
>>> Any idea what's wrong?
>>
>> As Tim (thanks Tim!) pointed out, it's just a bug, but I fixed it by
>> changing it to:
>>
>> os.chdir(os.path.abspath(dirname))
>
> Just hit another error trying to create a live cd from the kickstart
> file at
> http://sundaram.fedorapeople.org/rhel-gnome.ks
Tried commenting out the relevant SELinux configuration lines and that
fails with the following traceback
----
...
Removing password for user root.
passwd: Success
Building an initramfs at /boot/livecd-initramfs-2.6.18-8.el5.img for
kernel 2.6.18-8.el5
cat: /lib/modules/2.6.18-8.el5/modules.block: No such file or directory
Done; initramfs is 3.7M.
Building an initramfs at /boot/livecd-initramfs-2.6.18-8.el5.img for
kernel 2.6.18-8.el5
cat: /lib/modules/2.6.18-8.el5/modules.block: No such file or directory
Done; initramfs is 3.7M.
Traceback (most recent call last):
File "/usr/bin/livecd-creator", line 133, in ?
sys.exit(main())
File "/usr/bin/livecd-creator", line 117, in main
creator.configure()
File "/usr/lib/python2.4/site-packages/imgcreate/creator.py", line
626, in configure
self._create_bootconfig()
File "//usr/lib/python2.4/site-packages/imgcreate/live.py", line 189,
in _create_bootconfig
self._configure_bootloader(self.__ensure_isodir())
File "//usr/lib/python2.4/site-packages/imgcreate/live.py", line 518,
in _configure_bootloader
cfg += self.__get_image_stanzas(isodir)
File "//usr/lib/python2.4/site-packages/imgcreate/live.py", line 447,
in __get_image_stanzas
is_xen = self.__copy_kernel_and_initramfs(isodir, version, index)
File "//usr/lib/python2.4/site-packages/imgcreate/live.py", line 373,
in __copy_kernel_and_initramfs
isodir + "/isolinux/initrd" + index + ".img")
File "/usr/lib64/python2.4/shutil.py", line 47, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory:
'/var/tmp/imgcreate-Oty5r5/install_root/boot/livecd-initramfs-2.6.18-8.el5.img'
Rahul
More information about the livecd
mailing list