diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-10-20 20:06:19 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-10-20 20:06:19 +0000 |
commit | 0481374ee2a5bca98095e944f790ddfddc114715 (patch) | |
tree | 13d44b0db912b22f8243b0cc3beb71ef048d2685 /scripts | |
parent | d27837d94e6a481b2625fdfd156e0fdab1f3c224 (diff) | |
download | anaconda-0481374ee2a5bca98095e944f790ddfddc114715.tar.gz anaconda-0481374ee2a5bca98095e944f790ddfddc114715.tar.xz anaconda-0481374ee2a5bca98095e944f790ddfddc114715.zip |
don't make the second stage if we don't have a kernel
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mk-images | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/mk-images b/scripts/mk-images index 2e2943d5c..a99e32330 100755 --- a/scripts/mk-images +++ b/scripts/mk-images @@ -891,6 +891,7 @@ elif [ "$BUILDARCH" = "i386" ]; then else arches="$BUILDARCH" fi +foundakernel="" for KERNELARCH in $arches; do for kernelvers in $vertag; do KERNELROOT=$KERNELBASE/$KERNELARCH @@ -907,6 +908,8 @@ for KERNELARCH in $arches; do continue fi + foundakernel="yes" + ppackage=$($LATEST $KERNELPATH hwdata) if [ ! -f "$ppackage" ]; then ppackage="" @@ -952,9 +955,11 @@ for KERNELARCH in $arches; do done done -# make the second stage -find $KERNELBASE/*/lib/modules/ > $CACHE -makeSecondStage -rm -rf $KERNELBASE +if [ -n "$foundakernel"]; then + # make the second stage + find $KERNELBASE/*/lib/modules/ > $CACHE + makeSecondStage + rm -rf $KERNELBASE +fi cd $TOPDIR |