All,
I'm working with the latest version of livecd-creator available in rawhide,
which is livecd-tools-012-1.fc8. I noticed a bug when using the --base-on
option; basically, it is testing for the existence of the squashfs.img, but that
path can't possibly exist until the ISO has been loopback mounted. The attached
patch moves the mounting of the ISO before the check to see if the squashfs
filesystem exists. With this patch, I am able to successfully use the --base-on
option.
Signed-off-by: Chris Lalancette <[EMAIL PROTECTED]>
diff -up livecd-tools-012/creator/livecd-creator.orig livecd-tools-012/creator/livecd-creator
--- livecd-tools-012/creator/livecd-creator.orig 2007-10-22 10:38:01.000000000 -0400
+++ livecd-tools-012/creator/livecd-creator 2007-10-22 10:39:14.000000000 -0400
@@ -391,6 +391,11 @@ class ImageCreator(object):
isoloop = LoopbackMount(base_on, "%s/base_on_iso" %(self.build_dir,))
+ try:
+ isoloop.mount()
+ except MountError, e:
+ raise InstallationError("Failed to loopback mount '%s' : %s" % (base_on, e))
+
# legacy LiveOS filesystem layout support, remove for F9 or F10
if os.path.exists("%s/LiveOS/squashfs.img" %(isoloop.mountdir,)):
squashloop = LoopbackMount("%s/LiveOS/squashfs.img" %(isoloop.mountdir,),
@@ -402,11 +407,6 @@ class ImageCreator(object):
"squashfs")
try:
- try:
- isoloop.mount()
- except MountError, e:
- raise InstallationError("Failed to loopback mount '%s' : %s" % (base_on, e))
-
if not os.path.exists(squashloop.lofile):
raise InstallationError("'%s' is not a valid live CD ISO : squashfs.img doesn't exist" % base_on)
--
Fedora-livecd-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list