Index: linuxrdac-09.03.0C05.0030/setupDriver.SUSE =================================================================== --- linuxrdac-09.03.0C05.0030.orig/setupDriver.SUSE +++ linuxrdac-09.03.0C05.0030/setupDriver.SUSE @@ -80,6 +80,9 @@ makeMPPMkinitrdScript() exit 2 fi + if [ ! -x $MPP_MKINITRD_FILE ] + then + IS_SLES10=$(echo "${MPP_RAMDISK_KERNEL_VERSION}"|grep -c 2.6.16) if [ ${IS_SLES10} = 0 ] then @@ -130,6 +133,8 @@ makeMPPMkinitrdScript() fi /bin/chmod 0700 $MPP_MKINITRD_FILE + + fi } @@ -139,6 +144,22 @@ makeMPPMkinitrdScript() boot_loader_and_mesg() { + if [ -x /sbin/update-bootloader ] + then + ## Since this is only executed on SUSE specific distributions, + ## perl-Bootloader should be present allowing us to use update-bootloader. + + # We need to cheat on update-bootloader with /boot/vmlinuz, since there + # is already a entry for /boot/vmlinuz-$kver. + /sbin/update-bootloader --add \ + --name "${MPP_RAMDISK_KERNEL_VERSION} (MPP)" \ + --image /boot/vmlinuz $( cat /proc/cmdline ) showopts \ + --initrd /boot/mpp-${MPP_RAMDISK_KERNEL_VERSION}.img --force \ + --force-default &>/dev/null + + /sbin/update-bootloader --refresh &>/dev/null + else + if [ `uname -m` == "ia64" ] && [ -f $ELILO_CONFIG ] then BOOT_LOADER=$ELILO_CONFIG @@ -181,6 +202,7 @@ cat <