Links in /boot

Steven I Usdansky usdanskys at rocketmail.com
Sun Feb 6 23:55:57 UTC 2011


Here's the script I'd run manually every time I upgraded my kernel:

#!/bin/bash

cd /

mv vmlinuz vmlinuz.old
mv initrd initrd.old

NEW_KERNEL=`rpm -q kernel | tail -1 | sed -e 's/kernel-//'`
ln -s boot/vmlinuz-$NEW_KERNEL vmlinuz
ln -s boot/initramfs-$NEW_KERNEL.img initrd

exit 0


      


More information about the users mailing list