From 9b8bc9b8c0ddba9c2448336b133e138154e1787d Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 11 Jul 2007 21:02:59 +0000 Subject: [PATCH] b=12350 r=scjody,mjmac Handle situation where update-modules.dep doesn't exist (SLES10). --- build/suse-post.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 1.8.3.1