commit c48fe6745c563cd8e1184b2dcefa811adfe90719 Author: Dave Riches dcr226@fedorapeople.org Date: Thu Jan 6 15:17:42 2011 +0000
added iso-creating function, and appended it to mount_and_steal
multiboot-media-creator.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) --- diff --git a/multiboot-media-creator.py b/multiboot-media-creator.py index 6b55748..be0db4f 100644 --- a/multiboot-media-creator.py +++ b/multiboot-media-creator.py @@ -53,6 +53,12 @@ def umount_iso(iso): def removetemps(): shutil.rmtree(mytemp)
+def make_iso(): + os.makedirs(os.path.join(mytemp, "boot/grub")) + shutil.copy2('/usr/share/grub/i386-redhat/stage2_eltorito', os.path.join(mytemp, "boot/grub/")) + mkisocmd='mkisofs -R -v -V "Multi-Boot" -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -allow-limited-size -o Multi-Boot.iso %s' % mytemp + os.system(mkisocmd) + def mount_and_steal(): """Realistically, this is only here to prove things are working. It will create the temps then mount the isos, then steal the kernels, then un-mount the isos. You get the idea""" @@ -66,3 +72,6 @@ then mount the isos, then steal the kernels, then un-mount the isos. You get the print "Stole the kernel" umount_iso(i) print "Un-mounted iso: %s" % i + make_iso() + +
multiboot-media-creator@lists.fedorahosted.org