#---------------------------------------------------------------- # Systemimager: Create New Autoinstall Kernel and boot CD REFERENCE: http://dcwww.dcsc.dtu.dk/Niflheim/systemimager.html # # I need 2 special drivers (not in package systemimager-boot-i386-standard-3.2.3) # "forcedeth" & "sata_nv" # Research shows both present in latest 2.4 kernel # # Downlaod, unpack, get'n'there! # pushd /var/tmp/ wget http://freshmeat.net/redir/linux/13114/url_bz2/linux-2.4.31.tar.bz2 tar -jxvpf linux-2.4.31.tar.bz2 cd linux-2.4.31 # # Verify drivers present # find ./ -name "sata_nv*" # ./drivers/scsi/sata_nv.c find ./ -name "forcedeth*" # ./drivers/net/forcedeth.c # # Just to be safe I coppied defalut systemimager boot kernel config # cp /usr/share/systemimager/boot/i386/standard/config .config make oldconfig # # These are some of the choices I made, most other stuff off # CONFIG_BLK_DEV_IDEFLOPPY=y CONFIG_REISERFS_FS=y CONFIG_REISERFS_CHECK=y CONFIG_REISERFS_PROC_INFO=y CONFIG_BLK_DEV_IDE_SATA=y CONFIG_IDE=y CONFIG_BLK_DEV_IDE=y CONFIG_SCSI=y CONFIG_SCSI_SATA=y CONFIG_SCSI_SATA_NV=y CONFIG_FORCEDETH=y CONFIG_ROMFS_FS=y CONFIG_EXT2_FS=y # # Build kernel # make dep && make bzImage # # Make copy of the default systemimager-boot-i386-standard image # rsync -avz /usr/share/systemimager/boot/i386/standard/ /usr/share/systemimager/boot/i386/custom1 # # Copy to location of systemimager-boot-i386-standard images # cp arch/i386/boot/bzImage /usr/share/systemimager/boot/i386/custom1/kernel # # !!!CUSTOM KERNEL COMPLETE!!! # # # Fix initrd.img for new kernel # cp /usr/share/systemimager/boot/i386/standard/initrd.img /var/tmp/initrd.gz pushd /var/tmp/ mkdir mnt gunzip initrd.gz losetup /dev/loop0 # /dev/loop0: [fe04]:17 (/tmp/initrd) losetup -d /dev/loop0 mount -tcramfs -oloop,rw initrd mnt #I didn't need this# vi mnt/etc/init.d/rcS umount mnt/ gzip initrd mv initrd.gz /usr/share/systemimager/boot/i386/custom1/initrd.img # # NOW INITRD RAM DISK IS DONE!!! # # # Mkautoinstallcd # # systemimager versions >=3.2.3 mkautoinstallcd \ -kernel=/usr/share/systemimager/boot/i386/custom1/kernel \ -initrd=/usr/share/systemimager/boot/i386/custom1/initrd.img \ -out-file=/var/tmp/mybootdisk.iso # systemimager versions >=3.4.0 si_mkautoinstallcd \ -kernel=/usr/share/systemimager/boot/i386/custom1/kernel \ -initrd=/usr/share/systemimager/boot/i386/custom1/initrd.img \ -out-file=/var/tmp/mybootdisk.iso ####################################3 # Getting errors! # parted complains that disk geometry is wrong # parted /dev/hda 23583/128/32 (parted) select /dev/hda 23583/128/32 sfdisk -l -uM # 30515 cylinders, 255 heads, 63 sectors/track # cylinders of 8225280 bytes, blocks of 1024, counting from 0 # Not sure what to do about this yet, but it seems be related to my setup # I had installed debian unstable packages and got my images # Then I downgaded to debian stable pacakges and got this error trying to build a client.