Adding the file "info" to an bootable CD/DVD
Hi folks, Give 9.3 Suse Pro Booting from CD Installation from Network I would like to put the file "info" with is used by linuxrc on the installation cd because using an additional floppy causes to much trouble. But i am a little bit lost about howto do that. Do i have to change the isolinux.cfg ? Documentation tells me that the info file should be in initrd but i can not find that directory. ? Any tips ? tia Hajo ============================ Hans-Joachim Ehlers UNIX Systems Engineer EUMETSAT Am Kavalleriesand, 31 64295, Darmstadt, Germany Tel : +49 6151 807-7307 eMail : hansjoachim.ehlers@eumetsat.int iNet : www.eumetsat.de
On Tue, 2005-08-23 at 13:48 +0200, Hans-Joachim Ehlers wrote:
Hi folks, Give 9.3 Suse Pro Booting from CD Installation from Network
I would like to put the file "info" with is used by linuxrc on the installation cd because using an additional floppy causes to much trouble.
But i am a little bit lost about howto do that.
Do i have to change the isolinux.cfg ?
It is easier if you do (boot/loader/isolinux.cfg) and add to the kernel command line: info=file:/myinfofile.info
Documentation tells me that the info file should be in initrd but i can not find that directory. ?
Correct. initrd is a file not a directory. It is in boot/loader/initrd. Here is how to modify it (sorry no explanations but am in big hurry): Do this as root user: mount the first cdrom somewhere and copy it to somewhere, e.g. cdrom is mounted on /mnt/cd, then do: cp -ap /mnt/cd /tmp/mycd cd /tmp/mycd/boot/loader/initrd mv initrd initrd.gz gunzip initrd.gz mkdir i mount -t minix -o loop initrd i cd i vi myinfofile.info <edit it and save and quit> cd .. umount i rmdir i gzip -9 initrd mv initrd.gz initrd Now make the cd image: cd /tmp mkisofs -o mycdimage.iso -b boot/loader/isolinux.bin -c boot/loader/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -r -l mycd Now burn the mycdimage.iso iso image using k3b or whatever to a CD and boot with the cd. (-: Best regards, Anton -- Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
Hi Hajo, initrd is on the CD, but it's in its compressed form. Starting with 9.3 for suse (I think it's linux 2.6.10 and greater but don't hold me to that, Fedora Core 4 is the same way :) initrd.img is now a cpio image, not a filesystem, so you don't have to loopmount it to make changes. # I assume the original ISO is exploded under /work-iso gzip -dc /work-iso/initrd.img >/tmp/initrd.img # Uncompress it mkdir /work-initrd; cd /work-initrd # make a place to extract it cpio -i </tmp/initrd.img # Extract it from cpio archive cp /YOUR_INFO_FILE info # Put your info file in there find . | cpio -H newc -o /tmp/initrd.img # make new initrd.img gzip -c /tmp/initrd.img >/work-iso/initrd.img # Put in iso dir run mkisofs against /work-iso to create a new ISO image with your info file in it. Since I've got initrd open anyway, I also poke my autoyast.xml file in there and add: AutoYaST: file:///autoyast.xml to the info file so the bootimage is 100% self contained. Hope that helps! Lee On Tue, 2005-08-23 at 13:48 +0200, Hans-Joachim Ehlers wrote:
Hi folks, Give 9.3 Suse Pro Booting from CD Installation from Network
I would like to put the file "info" with is used by linuxrc on the installation cd because using an additional floppy causes to much trouble.
But i am a little bit lost about howto do that.
Do i have to change the isolinux.cfg ? Documentation tells me that the info file should be in initrd but i can not find that directory. ?
Any tips ? tia Hajo
============================ Hans-Joachim Ehlers UNIX Systems Engineer EUMETSAT Am Kavalleriesand, 31 64295, Darmstadt, Germany Tel : +49 6151 807-7307 eMail : hansjoachim.ehlers@eumetsat.int iNet : www.eumetsat.de
-- Lee Mayes <autoinst@mayeses.com>
participants (3)
-
Anton Altaparmakov
-
Hans-Joachim Ehlers
-
Lee Mayes