ruffEdgz
March 12th, 2010, 10:30 PM
What I am going to tell you has worked for the Alternative Ubuntu ISO but I would like to see if I can do this for the Server Ubuntu ISO. I need to pass along some ideas as no one else seems to have tried it this way on this forum (other have been using preseeds but I don't think this way).
Been using this Ubuntu Doc as reference for this: https://help.ubuntu.com/community/InstallCDCustomization
Downloaded ubuntu-9.10-server-i386.iso from Ubuntu's site: http://www.ubuntu.com/getubuntu/downloadmirrors#mirrors
Mounted the ISO to my computer: mount -o loop Download/ubuntu-9.10-server-i386.iso /mnt/ubuntu/
Copy files from the mounted ISO to my HDD: cp -rf /mnt/ubuntu/* /opt/ubuntu-server/
Once the files were on my HDD, I started to edit files that would help using a special preseed I wanted to configure
I changed directories to /opt/ubuntu-server/preseed/ and created a file called test.seed
I edited the test.seed file with the example found here: https://help.ubuntu.com/9.04/installation-guide/example-preseed.txt
Saved it and changed directories to /opt/ubuntu-server/isolinux/
Started the edit the text.cfg (holds the labels for installing ubuntu)
Here is what I appended to the end of the file:
---
label test-install
menu label ^Install Test Ubuntu
kernel /install/vmlinuz
append file=/cdrom/preseed/test.seed debian-installer/locale=en_NZ console-setup/layoutcode=us initrd=/install/initrd.gz quiet --
---
Save the file and change directories to my home directory: cd ~
I then start the ISO creation process: sudo mkisofs -D -r -V "Custom Install CD" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o custom.iso /opt/ubuntu-server/
It successfully makes the ISO in my home directory called 'custom.iso'
I start a test of the ISO with: qemu -cdrom custom.iso -boot d -m 512
The emulation starts and gets to the Ubuntu Installation Screen, I select the 'Install Test Ubuntu' option and it starts to load up
The process looks like its taking shape but then I get a red screen saying: "The CD-ROM drive contains a CD which cannot be used for installation"
I checked /var/log/syslog and it says something simular: "The CD on /dev/sr0 is not an Ubuntu CD!"
For a second test, I thought I would update the /opt/ubuntu-server/md5sum.txt with a more up-2-date checksum: find . -type f -print0 | xargs -0 md5sum > md5sum.txt
I deleted the old 'custom.iso' and recreated it with the same result
The question I have is: how can I make my custom ISO a trusted Ubuntu CD or where on the CD does it check to see what is a trusted Ubuntu CD?
Any thoughts, ideas or questions would be great. Thanks!
Been using this Ubuntu Doc as reference for this: https://help.ubuntu.com/community/InstallCDCustomization
Downloaded ubuntu-9.10-server-i386.iso from Ubuntu's site: http://www.ubuntu.com/getubuntu/downloadmirrors#mirrors
Mounted the ISO to my computer: mount -o loop Download/ubuntu-9.10-server-i386.iso /mnt/ubuntu/
Copy files from the mounted ISO to my HDD: cp -rf /mnt/ubuntu/* /opt/ubuntu-server/
Once the files were on my HDD, I started to edit files that would help using a special preseed I wanted to configure
I changed directories to /opt/ubuntu-server/preseed/ and created a file called test.seed
I edited the test.seed file with the example found here: https://help.ubuntu.com/9.04/installation-guide/example-preseed.txt
Saved it and changed directories to /opt/ubuntu-server/isolinux/
Started the edit the text.cfg (holds the labels for installing ubuntu)
Here is what I appended to the end of the file:
---
label test-install
menu label ^Install Test Ubuntu
kernel /install/vmlinuz
append file=/cdrom/preseed/test.seed debian-installer/locale=en_NZ console-setup/layoutcode=us initrd=/install/initrd.gz quiet --
---
Save the file and change directories to my home directory: cd ~
I then start the ISO creation process: sudo mkisofs -D -r -V "Custom Install CD" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o custom.iso /opt/ubuntu-server/
It successfully makes the ISO in my home directory called 'custom.iso'
I start a test of the ISO with: qemu -cdrom custom.iso -boot d -m 512
The emulation starts and gets to the Ubuntu Installation Screen, I select the 'Install Test Ubuntu' option and it starts to load up
The process looks like its taking shape but then I get a red screen saying: "The CD-ROM drive contains a CD which cannot be used for installation"
I checked /var/log/syslog and it says something simular: "The CD on /dev/sr0 is not an Ubuntu CD!"
For a second test, I thought I would update the /opt/ubuntu-server/md5sum.txt with a more up-2-date checksum: find . -type f -print0 | xargs -0 md5sum > md5sum.txt
I deleted the old 'custom.iso' and recreated it with the same result
The question I have is: how can I make my custom ISO a trusted Ubuntu CD or where on the CD does it check to see what is a trusted Ubuntu CD?
Any thoughts, ideas or questions would be great. Thanks!