codekasten/knoppix-remastering/local.conf.d/chroot_scripts.d/boot_setup.sh

24 lines
503 B
Bash
Raw Normal View History

KVERSION=$(readlink /boot/vmlinuz)
KVERSION=${KVERSION#vmlinuz-}
# configure grub
[ -d /boot/grub ] || mkdir -p /boot/grub
echo "
timeout 3
title Silicann - ein neuronales Netz
kernel /boot/vmlinuz-${KVERSION} root=/dev/hdc
initrd /boot/initrd-${KVERSION}
" >/boot/grub/menu.lst
# configure mkinitrd
sed -i 's/^ROOT=.*$/ROOT=iso9660/' /etc/mkinitrd/mkinitrd.conf
sed -i 's/^MODULES=.*$/MODULES=dep/' /etc/mkinitrd/mkinitrd.conf
# create initrd
mkinitrd -o /boot/initrd-${KVERSION} ${KVERSION}