Making isolinux boot from existing kernel on hd and launch seed file
I'm running Ubuntu 6.06 LTS and have a system installed by a custom made installer. isolinux.cfg appending a preseed/file that launches a bash script after ubuntu is installed.
This works perfectly, but now I'm trying to create an upgrade option in the isolinux.cfg. I just want to insert the dvd, select the upgrade label in isolinux.cfg menu and have it reboot from disk and read an upgrade.seed file which launch an upgrade.sh script by appending a preseed/late_command. I do not want to launch the kernel or installer as I already have a workign os.
More or less I need a bootable cd with a grub-like menu which launches a script at startup. It would be very convenient if I could get the current setup to work by tweaking the isolinux.cfg-file. I have tried the following isolinux.cfg-settings, but when calling localboot, the 'append' part is not launched.
I have this isolinux.cfg:
APPEND preseed/file=/cdrom/preseed/upgrade.seed initrd=/install/initrd.gz ramdisk_size=16384 root=/dev/ram rw quiet --
menu label ^Upgrade1
append preseed/file=/cdrom/preseed/upgrade.seed --
menu label ^Upgrade2
append preseed/file=/cdrom/preseed/upgrade.seed initrd=/install/initrd.gz ramdisk_size=16384 root=/dev/ram rw quiet --
I have this upgrade.seed:
# Copy the upgrade script
d-i preseed/late_command string /target/cdrom/preseed/late_command_upgrade.sh
# Finish the installation and reboot the system
d-i prebaseconfig/reboot_in_progress note
This is late_command_upgrade.sh:
cp -a /target/cdrom/Upgrade/S99vupgrade /target/etc/rc2.d/
cp -a /target/cdrom/Upgrade/upgrade.sh /target/root/
S99vupgrade looks like this:
# Remove itself
# Start upgrade process
Some help on how to fix the isolinux.cfg would be greatly appreciated.
Tags for this Thread