1 if [ -f /boot/vmlinuz-%ver_str ]; then
3 elif [ -f /boot/image-%ver_str ]; then
5 elif [ -f /boot/vmlinux-%ver_str ]; then
8 # nothing to do (UML kernels for example).
16 SHORTNM=-${SHORTNM##*-}
24 # If we have old symlinks, rename them to *.previous
25 if [ -L /boot/$image$SHORTNM -a \
26 "$(readlink /boot/$image$SHORTNM)" != $image-%ver_str ]; then
27 mv /boot/$image$SHORTNM /boot/$image$SHORTNM.previous
29 relink $image-%ver_str /boot/$image$SHORTNM
31 if test "$YAST_IS_RUNNING" != instsys ; then
32 if [ -f /etc/fstab ]; then
33 echo Setting up /lib/modules/%ver_str
34 if [ -x /sbin/update-modules.dep ]; then
35 /sbin/update-modules.dep -v %ver_str
37 /sbin/depmod -a -F /boot/System.map-%ver_str %ver_str
40 /sbin/mkinitrd -k $image-%ver_str -i initrd-%ver_str $NOBOOTSPLASH
42 if [ -L /boot/initrd$SHORTNM -a \
43 "$(readlink /boot/initrd)" != initrd-%ver_str ]; then
44 mv /boot/initrd$SHORTNM /boot/initrd$SHORTNM.previous
46 if [ -e /boot/initrd-%ver_str ]; then
47 relink initrd-%ver_str /boot/initrd$SHORTNM
49 rm -f /boot/initrd$SHORTNM
52 echo "please run mkinitrd as soon as your system is complete"
56 if [ "$YAST_IS_RUNNING" != instsys ]; then
57 # Notify boot loader that a new kernel image has been installed.
58 # (during initial installation the boot loader configuration does not
59 # yet exist when the kernel is installed, but yast kicks the boot
60 # loader itself later.)
61 if [ -x /sbin/new-kernel-pkg ]; then
62 /sbin/new-kernel-pkg %ver_str
63 elif [ -x /usr/lib/bootloader/bootloader_entry ]; then
64 # handle 10.2 and SLES10 SP1
65 /usr/lib/bootloader/bootloader_entry \
71 elif [ -x /sbin/update-bootloader ]; then
72 # handle 10.1 and SLES10 GA
73 /sbin/update-bootloader \
75 --image /boot/vmlinuz-%ver_str \
76 --initrd /boot/initrd-%ver_str
77 /sbin/update-bootloader --refresh
79 echo "You may need to setup and install the boot loader using the"
80 echo "available bootloader for your platform (e.g. grub, lilo, zipl, ...)."