53-vmlinuz_symlink 352 B

123456789101112131415161718
  1. #!/bin/sh
  2. set -e
  3. echo "Creating kernel and ramdisk symlinks"
  4. # Get version information for the (newest) installed kernel.
  5. KERNEL="`/bin/ls -1 /boot/vmlinuz-* | tail -n 1`"
  6. INITRD="`/bin/ls -1 /boot/initrd.img-* | tail -n 1`"
  7. if [ ! -e /vmlinuz ]; then
  8. ln -s "$KERNEL" /vmlinuz
  9. fi
  10. if [ ! -e /initrd.img ]; then
  11. ln -s "$INITRD" /initrd.img
  12. fi