commit 52c5f85eb6e32209533b5d403724b25111ab07c1
Author: Dave Riches <dcr226(a)fedorapeople.org>
Date: Thu Dec 23 19:29:34 2010 +0000
moved script
bin/multiboot-media-creator | 71 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/bin/multiboot-media-creator b/bin/multiboot-media-creator
new file mode 100755
index 0000000..e111733
--- /dev/null
+++ b/bin/multiboot-media-creator
@@ -0,0 +1,71 @@
+#/bin/bash
+# MultiImage-Media-Creator multiboot dvd creation tool.
+# inital work done by Dave Riches, Bob Jensen, Dennis Johnson
+# version 0.1
+VERSION=0.1
+#clean up old mess
+rm -rfv tmp image
+echo "MultiImage-Media-Creator - multiboot iso creation tool version:
"$VERSION
+echo "I'm going to create a iso from the following iso's:"
+echo ""
+ls -lh *iso
+mkdir -pv image/boot/grub tmp
+cat > image/boot/grub/grub.conf <<EOT
+timeout=10
+default=0
+EOT
+
+for i in *iso
+do
+ BN=$(basename $i .iso)
+ mkdir -pv image/${BN}/{boot,images,CHECKSUM}
+ mount -o loop $i tmp
+ grep -q live tmp/isolinux/isolinux.cfg && status="Live" ||
status="NotLive"
+ echo $status
+ if [ $status = "Live" ]; then
+# cp -rfv tmp/* image/${BN}/
+ rsync -avH --progress tmp/* image/${BN}/
+ cat >> image/boot/grub/grub.conf <<EOT
+title ${BN}
+ kernel /${BN}/isolinux/vmlinuz0 root=live:LABEL=Multi-Boot live_dir=/${BN}/LiveOS/
rootfstype=auto ro liveimg quiet rhgb
+ initrd /${BN}/isolinux/initrd0.img
+EOT
+ cat >> image/boot/grub/submenu.lst <<EOT
+title ${BN}
+ kernel /${BN}/isolinux/vmlinuz0 root=live:LABEL=Multi-Boot live_dir=/${BN}/LiveOS/
rootfstype=auto ro liveimg quiet rhgb check
+ initrd /${BN}/isolinux/initrd0.img
+EOT
+
+ else
+# cp -fv tmp/isolinux/vmlinuz image/${BN}/boot/
+ rsync -avH --progress tmp/isolinux/vmlinuz image/${BN}/boot/
+# cp -fv tmp/isolinux/initrd.img image/${BN}/boot/
+ rsync -avH --progress tmp/isolinux/initrd.img image/${BN}/boot/
+# cp -fv tmp/images/install.img image/${BN}/images/
+ rsync -avH --progress tmp/images/install.img image/${BN}/images/
+ cat >> image/boot/grub/grub.conf <<EOT
+title ${BN}
+ kernel /${BN}/boot/vmlinuz repo=hd:LABEL=Multi-Boot:/${BN}/
+ initrd /${BN}/boot/initrd.img
+EOT
+# cp -fv $i image/${BN}/
+ rsync -avH --progress $i image/${BN}/
+ CS=$(echo ${BN} | sed "s/DVD/CHECKSUM/g")
+# cp -fv $CS* image/${BN}/CHECKSUM/
+ rsync -avH --progress $CS* image/${BN}/CHECKSUM/
+ umount -v tmp
+ fi
+done
+cat >> image/boot/grub/grub.conf <<EOT
+title Verify media
+ configfile /boot/grub/submenu.lst
+EOT
+ln -s grub.conf image/boot/grub/menu.lst
+#cp -fv /usr/share/grub/*-redhat/stage2_eltorito image/boot/grub/
+rsync -avH --progress /usr/share/grub/*-redhat/stage2_eltorito image/boot/grub/
+##cp -fv /usr/share/grub/i386-redhat/stage2_eltorito image/boot/grub/
+##rsync -avH --progress /usr/share/grub/i386-redhat/stage2_eltorito image/boot/grub/
+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 image
+echo "Cleaning up in 5 seconds, hit <ctrl>-C to stop me"
+sleep 5
+rm -rf tmp/ image/
Show replies by date