View Full Version : Adding Sun's JDK to Live CD
1st May 2009, 07:05 PM
I would like to add Sun's JDK to a Live CD install but unfortunately, when I add the jdk package to the package list, I get a umount error at the end of execution of the livecd-creator command and I can't unmount the /dev/loop mount point afterward unless I reboot my system. It seems like the installation of the jdk package causes some problems with the Live CD install. Is there a workaround? Is there a way to instruct the Live CD to install a specific RPM only when the user installs to hard disk.
1st May 2009, 07:21 PM
You can just add the rpm to the livecd squashfs filesystem or to the iso image without actually installing it.
Would that be good enough? ($LIVE_ROOT is probably the better option, since then the rpms are easily accesible on the CD image from anywhere, if you copy to $INSTALL_ROOT they are only accessible fro the live session)
1st May 2009, 08:05 PM
How would I be able to install the JDK RPM on my system hard disk if I make it available in $LIVE_ROOT (/mnt/live)? Can I install the RPM after I run liveinst? I am new to live-creator, so I don't understand all the details of how it works. I am pretty sure the hard disk is available when running from Live CD, but if the RPM expects to install a file in say /usr/java/jdk1.6.0_13/bin and the Live CD is running, it probably will not install it on the hard disk, but rather in the file system overlay created by the Live CD.
1st May 2009, 08:14 PM
But after installing to the hard disk using liveinst you can then just boot the hard disk and install the rpm from the CD, it will just be an ordinary file on the CD. So something like
yum --nogpgcheck install /media/MYLIVECD/<sunjdk>.rpm
or use rpm -ihv.
If you copy the rpm to $INSTALL_ROOT instead than that will get copied to the hard disk when you run liveinst, along with the rest of the filesystem. So you might prefer that, it will still require manual install with yum or 'rpm -ihv' after you boot the hard disk install, but you won't need the CD to install it.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.