From: brian Date: Wed, 11 Jul 2007 21:02:59 +0000 (+0000) Subject: b=12350 X-Git-Tag: v1_7_100~22 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9b8bc9b8c0ddba9c2448336b133e138154e1787d b=12350 r=scjody,mjmac Handle situation where update-modules.dep doesn't exist (SLES10). --- diff --git a/build/suse-post.sh b/build/suse-post.sh index 869fa40..d60d63f 100644 --- a/build/suse-post.sh +++ b/build/suse-post.sh @@ -31,7 +31,11 @@ relink $image-%ver_str /boot/$image$SHORTNM if test "$YAST_IS_RUNNING" != instsys ; then if [ -f /etc/fstab ]; then echo Setting up /lib/modules/%ver_str - /sbin/update-modules.dep -v %ver_str + if [ -x /sbin/update-modules.dep ]; then + /sbin/update-modules.dep -v %ver_str + else + /sbin/depmod -a -F /boot/System.map-%ver_str %ver_str + fi cd /boot /sbin/mkinitrd -k $image-%ver_str -i initrd-%ver_str $NOBOOTSPLASH