From 3fa73fb546ed99a448b62feaa5714eb14a398cd4 Mon Sep 17 00:00:00 2001 From: mjmac Date: Wed, 5 Apr 2006 02:02:36 +0000 Subject: [PATCH] * fix a tyop * add some sanity-checking --- build/lbuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/lbuild b/build/lbuild index 2fb22b2..68930e6 100755 --- a/build/lbuild +++ b/build/lbuild @@ -717,11 +717,17 @@ if [ -z "$LINUX" ] ; then LINUX=$(pwd)/linux pushd $LINUX && { # need a .config -- like a user would do - cp /boot/config-${lnxmaj}-${lnxrel}smp .config + BOOTCONFIG="/boot/config-${lnxmaj}-${lnxrel}smp" + if [ -f $BOOTCONFIG ]; then + cp $BOOTCONFIG .config + else + fatal 1 "$BOOTCONFIG doesn't exist! Help!" + fi make oldconfig make include/asm make include/linux/version.h make SUBDIRS=scripts + } popd build_lustre fi -- 1.8.3.1