live-iso-gnome/nvidia-enablement/hooks/2-link-uname-to-kernel.chroot

15 lines
462 B
Plaintext
Raw Normal View History

#!/bin/bash
. /chroot_scripts/info.sh
if [ -z $ISO_KERNEL ]
then
exit 1
fi
echo "Workaround: Link chroot kernel to host kernel..."
ln -sfv /boot/config-$ISO_KERNEL /boot/config-$(uname -r)
ln -sfv /boot/initrd.img-$ISO_KERNEL /boot/initrd.img-$(uname -r)
ln -sfv /usr/src/linux-headers-$ISO_KERNEL /usr/src/linux-headers-$(uname -r)
ln -sfv /boot/System.map-$ISO_KERNEL /boot/System.map-$(uname -r)
ln -sfv /boot/vmlinuz-$ISO_KERNEL /boot/vmlinuz-$(uname -r)