sles8-post.sh
来自「lustre 1.6.5 source code」· Shell 代码 · 共 50 行
SH
50 行
# Replace fake symlinks with the real onesrelink vmlinuz-%ver_str /boot/vmlinuzrelink initrd-%ver_str /boot/initrdif [ -e /etc/sysconfig/kernel ]; then update_rcfile_setting /etc/sysconfig/kernel INITRD_MODULES 2>&1elif [ -e /etc/rc.config ]; then update_rcfile_setting /etc/rc.config INITRD_MODULES 2>&1fi# If any trigger scripts have created additional modules, we need to# run depmod.run_depmod=if [ -x /sbin/depmod ]; then for module in $(find /lib/modules/%ver_str \ /lib/modules/%{version}-override-%{cfg_name} \ -type f) ; do if [ $module -nt /lib/modules/%ver_str/modules.dep ]; then run_depmod=1 break fi donefiif [ -n "$run_depmod" ]; then depmod -ae %ver_strfiif [ -f /etc/fstab -a -x /sbin/mkinitrd ]; then cd /boot && \ /sbin/mkinitrd -k "vmlinuz-%ver_str" -i "initrd-%ver_str"elif [ -f /etc/fstab -a -x /sbin/mk_initrd ]; then cd /boot && \ /sbin/mk_initrd -k "vmlinuz-%ver_str" -i "initrd-%ver_str"else echo "please run mkinitrd as soon as your system is complete"fi# Only call new-kernel-pkg during package updates: Otherwise we might# call this during an initial installation, with a half-initialized# boot loader. ($1 = number of instances of this package currently# installed.)if [ "$1" -gt 1 ]; then # Notify boot loader that a new kernel image has been installed. if [ -x /sbin/new-kernel-pkg ]; then /sbin/new-kernel-pkg %ver_str elif [ -e /etc/lilo.conf -a -x /sbin/lilo ]; then /sbin/lilo fifi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?