OK
I been playing with some Grub2 stuff and have made a couple/three DVD's
and one i really like is my SuperBuntu Installer DVD
it features all iso's of ubuntu/kubuntu/xubuntu both 9.04 and 9.10!
all booting from iso! on the DVD
it also has plop bootmanager and netbootcd
OK
Prerequisites:
1) a running 9.04 or 9.10 ubuntu-esque system, even livecd
with grub2 installed and "grub-rescue-pc" also installed
2) about 8+ GB of free space somewhere...
3) these helpful apps:
isomaster, grub2, syslinux, brasero or k3b, qemu-launcher
4) All 6 of whatever combo of ubuntu isos
for this one I used both 9.04 and 9.10 of each
ubuntu-9.04-desktop-i386.iso & 9.10
kubuntu-9.04-desktop-i386.iso & 9.10
xubuntu-9.04-desktop-i386.iso & 9.10
You can also use the 64 bit isos and any Ubuntu-esque isos
like
Mint-8 Helena and others.
You can have both 32 and 64 bit mixes too
STEP 1:
Using synaptic, install grub-rescue-pc and grub2 if not already installed; default with 9.10
http://packages.ubuntu.com/karmic/grub-rescue-pc
STEP 2:
Make a folder somewhere, for this how-to I'm gonna
use a folder named "DVD" on my Ubuntu 9.10 Desktop
and make another folder inside the DVD folder named "test"
mkdir -p Desktop/DVD/test
The grub-rescue-pc iso is in /usr/lib/grub-rescue
its called "grub-rescue-cdrom.iso"
so, we gotta cd into our Desktop/DVD folder, mount, and extract the iso to our Desktop/DVD/test folder,
as root, and we gotta make a mountpoint to mount iso on-
Code:
sudo su + password
cd Desktop/DVD
mkdir mnt
mount -o loop /usr/lib/grub-rescue/grub-rescue-cdrom mnt
cp -a mnt/* test
umount mnt
Now,
we got the iso extracted into our test folder
and there is a file in boot/grub folder named grub.cfg
go ahead and delete that grub.cfg as we won't need it.
Step 3:
Now, you gotta make a folder named "iso" in boot folder
this is where all the iso's will go-
mkdir -p test/boot/iso
Now, copy all your ubuntu iso's into the boot/iso folder
assuming all your iso's (6) are in /home/Downloads
cp -a /home/Downloads/* test/boot/iso
this will take a while
note that you can do all of this thru file manager called up as root
assuming gnome desktop
call up Nautilus as root
sudo nautilus
then select all the iso's you want and copy to boot/iso folder
While all thats being copied to your test/boot/iso folder
heres the new grub.cfg for your DVD
http://multidistro.com/scripts/grub.cfg
place this in boot/grub folder
Now, make sure you dont have word wrap on when you save the grub.cfg above!
save that as grub.cfg and put it in the test/boot/grub folder
STEP 4:
Now, everything in the recipe is complete, its time to put it in the iso maker
and run it thru Qemu!
Here is a script that will auto-make a grub2 iso cd/dvd
name it "grub2_iso.sh"
If you dont have genisoimage installed replace genisoimage with mkisofs
Code:
#------------------------------------------------------------
#!/bin/bash
# For creating Grub2 iso image
# Editable portions are iso name; "SuperBuntu.iso" in this case
# And the folder to be made into iso; "test" in this instance.
# Place this script in DVD folder and make executable with
# chmod +x grub2_iso.sh
# then invoke with
# ./grub2_iso.sh
genisoimage -v -r -b boot/grub/grub_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o SuperBuntu.iso test
# EOF-----------------------------------------------------------------
As it says, place the script in Desktop/DVD folder and make it executable
when everything's ready invokde the script and wait awhile...
When its done make sure to run it thru Qemu via qemu-launcher and see if it all works!