X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2Fsuse-post.sh;h=7efe83df630f8d4b8781872c73e5a7788bf914a2;hb=c930adb5571f2960e52be76e9bd15d12d511818f;hp=d60d63f5d4e8827076310a8cf73c9d26fc323d43;hpb=9b8bc9b8c0ddba9c2448336b133e138154e1787d;p=fs%2Flustre-release.git diff --git a/build/suse-post.sh b/build/suse-post.sh index d60d63f..7efe83d 100644 --- a/build/suse-post.sh +++ b/build/suse-post.sh @@ -53,10 +53,30 @@ if test "$YAST_IS_RUNNING" != instsys ; then fi fi -if [ "$YAST_IS_RUNNING" != instsys -a -x /sbin/new-kernel-pkg ]; then +if [ "$YAST_IS_RUNNING" != instsys ]; then # Notify boot loader that a new kernel image has been installed. # (during initial installation the boot loader configuration does not # yet exist when the kernel is installed, but yast kicks the boot # loader itself later.) - /sbin/new-kernel-pkg %ver_str + if [ -x /sbin/new-kernel-pkg ]; then + /sbin/new-kernel-pkg %ver_str + elif [ -x /usr/lib/bootloader/bootloader_entry ]; then + # handle 10.2 and SLES10 SP1 + /usr/lib/bootloader/bootloader_entry \ + add \ + %flavor \ + %ver_str \ + vmlinuz-%ver_str \ + initrd-%ver_str + elif [ -x /sbin/update-bootloader ]; then + # handle 10.1 and SLES10 GA + /sbin/update-bootloader \ + --add \ + --image /boot/vmlinuz-%ver_str \ + --initrd /boot/initrd-%ver_str + /sbin/update-bootloader --refresh + else + echo "You may need to setup and install the boot loader using the" + echo "available bootloader for your platform (e.g. grub, lilo, zipl, ...)." + fi fi