(no commit message)
[tails-test.git] / config / chroot_local-hooks / 53-vmlinuz_symlink
blob6cd08f8bd60971182b226f90cf4c5279a7c3fe1f
1 #!/bin/sh
3 set -e
5 echo "Creating kernel and ramdisk symlinks"
7 # Get version information for the (newest) installed kernel.
8 KERNEL="`/bin/ls -1 /boot/vmlinuz-* | tail -n 1`"
9 INITRD="`/bin/ls -1 /boot/initrd.img-* | tail -n 1`"
11 if [ ! -e /vmlinuz ]; then
12 ln -s "$KERNEL" /vmlinuz
15 if [ ! -e /initrd.img ]; then
16 ln -s "$INITRD" /initrd.img