1 # Replace fake symlinks with the real ones
2 relink vmlinuz-%ver_str /boot/vmlinuz
3 relink initrd-%ver_str /boot/initrd
5 if [ -e /etc/sysconfig/kernel ]; then
6 update_rcfile_setting /etc/sysconfig/kernel INITRD_MODULES 2>&1
7 elif [ -e /etc/rc.config ]; then
8 update_rcfile_setting /etc/rc.config INITRD_MODULES 2>&1
11 # If any trigger scripts have created additional modules, we need to
14 if [ -x /sbin/depmod ]; then
15 for module in $(find /lib/modules/%ver_str \
16 /lib/modules/%{version}-override-%{cfg_name} \
18 if [ $module -nt /lib/modules/%ver_str/modules.dep ]; then
24 if [ -n "$run_depmod" ]; then
28 if [ -f /etc/fstab -a -x /sbin/mkinitrd ]; then
30 /sbin/mkinitrd -k "vmlinuz-%ver_str" -i "initrd-%ver_str"
31 elif [ -f /etc/fstab -a -x /sbin/mk_initrd ]; then
33 /sbin/mk_initrd -k "vmlinuz-%ver_str" -i "initrd-%ver_str"
35 echo "please run mkinitrd as soon as your system is complete"
38 # Only call new-kernel-pkg during package updates: Otherwise we might
39 # call this during an initial installation, with a half-initialized
40 # boot loader. ($1 = number of instances of this package currently
42 if [ "$1" -gt 1 ]; then
43 # Notify boot loader that a new kernel image has been installed.
44 if [ -x /sbin/new-kernel-pkg ]; then
45 /sbin/new-kernel-pkg %ver_str
46 elif [ -e /etc/lilo.conf -a -x /sbin/lilo ]; then