Customising the install disk

From SlackWiki
Jump to: navigation, search

This is from my experience working with Slamd64, and will probably grow as people ask more things.

Adding a new kernel to the disk

Firstly, copy the kernels/bare.i/config to .config in your kernel source directory. You then need to configure your kernel as appropriate, and build it. Once you've done this, go to the kernels/ subdirectory of the tree, and make a new directory for your kernel, then run these commands:

cd /usr/src/linux
cp .config /path/to/slackware/tree/kernels/$KERNELNAME/config
cp arch/x86_64/boot/bzImage /path/to/slackware/tree/kernels/$KERNELNAME/bzImage
gzip -9
cp /path/to/slackware/tree/kernels/$KERNELNAME/

You then need to add a new section to the isolinux/isolinux.cfg file for the kernel, for example, if $KERNELNAME = 3ware.s (from Slamd64):

label 3ware.s
 kernel /kernels/3ware.s/bzImage
 append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=11719 rw root=/dev/ram SLACK_KERNEL=3ware.s11