This is the first in a series of patches that implements the livecd filesystem layout changes I proposed in an RFC a couple days ago.

Please note, that I am not all that intent on pushing these on people if they don't want them. But I'm intent enough that I felt like throwing a working set of patches together, to at least scare people into voicing approval or opposition. I would be perfectly content to file these away, and possibly revisit them for F9. But, if people want them, I certainly wouldn't mind seeing them applied sooner.

These have been tested on minimal spins under qemu.

VERY IMPORTANTLY: much of the code changes have to do with legacy support in livecd-iso-to-disk and livecd-creator --base-on-iso, but I have not tested these AT ALL. If people voice no opposition, and some approval, then I will go to the trouble of testing those things. And in that case, this submission is also an avenue for feedback.

Note, the --base-on-iso legacy support may be pointless, as if these were adopted for F8, then there is no reason to allow an f8 version of livecd-creator to run --base-on-iso against an F7 livecd.

Now on to the patches. I'll elaborate in individual emails. This first patch, should probably be applied regardless of the rest. It simply removes the apparently pointless /sysroot directory from the iso9660 filesystem. Please let me know if I'm wrong and this is somehow needed by something.

6 more after this one...

-dmc
diff -Naur livecd.200709202328/creator/livecd-creator livecd.1.remove_sysroot_from_iso/creator/livecd-creator
--- livecd.200709202328/creator/livecd-creator	2007-09-21 08:39:10.000000000 +0000
+++ livecd.1.remove_sysroot_from_iso/creator/livecd-creator	2007-09-21 08:49:38.000000000 +0000
@@ -428,8 +428,8 @@
         except OSError, (err, msg):
             raise InstallationError("Failed create build directory in %s: %s" % (self.tmpdir, msg))
 
-        os.makedirs(self.build_dir + "/out/sysroot")
-        os.makedirs(self.build_dir + "/data/sysroot")
+        os.makedirs(self.build_dir + "/out")
+        os.makedirs(self.build_dir + "/data")
         os.makedirs(self.build_dir + "/install_root")
         os.makedirs(self.build_dir + "/yum-cache")
 
@@ -915,7 +915,7 @@
     def createSquashFS(self):
         """create compressed squashfs file system"""
         if not self.skip_compression:
-            ret = subprocess.call(["/sbin/mksquashfs", "os.img", "sysroot",
+            ret = subprocess.call(["/sbin/mksquashfs", "os.img",
                                    "../out/squashfs.img"],
                                   cwd="%s/data" %(self.build_dir,),
                                   env={"PWD": "%s/data" %(self.build_dir,)})
--
Fedora-livecd-list mailing list
Fedora-livecd-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-livecd-list

Reply via email to