forked from images/live-iso-gnome
Ward Nakchbandi (CosmicFusion)
a6a8a96e86
revert This is ridiclous but i saw it as a solution 5 times in stack overflow
15 lines
462 B
Bash
Executable File
15 lines
462 B
Bash
Executable File
#!/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) |