summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-02-03 18:20:53 +0000
committerJeremy Katz <katzj@redhat.com>2004-02-03 18:20:53 +0000
commit03fd3dae1743bd3c998b1383d26b4c391b8e23ca (patch)
treeffd7ccd5154f3757e9edb3d80e67fa6dd7f0042a /scripts/mk-images
parenta06273fba4e99e3cb88a6bcca27df14b3a87cb97 (diff)
downloadanaconda-03fd3dae1743bd3c998b1383d26b4c391b8e23ca.tar.gz
anaconda-03fd3dae1743bd3c998b1383d26b4c391b8e23ca.tar.xz
anaconda-03fd3dae1743bd3c998b1383d26b4c391b8e23ca.zip
try to make it so that we use i586 kernel for boot.iso for fedora and
i686 for rhel.
Diffstat (limited to 'scripts/mk-images')
-rwxr-xr-xscripts/mk-images8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index 7e8069583..144895654 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -853,7 +853,7 @@ vertag="BOOT"
if [ "$BUILDARCH" = "ppc" -o "$BUILDARCH" = "ppc64" ]; then
arches="ppc64pseries ppc64iseries ppc"
elif [ "$BUILDARCH" = "i386" ]; then
- arches="i686"
+ arches="i586"
else
arches="$BUILDARCH"
fi
@@ -869,6 +869,12 @@ for KERNELARCH in $arches; do
kernelvers=""
fi
+ if [ "$KERNELARCH" = "i586" -a ! -f "$kpackage" ]; then
+ echo "No i586 kernel, trying i686..."
+ KERNELARCH="i686"
+ kpackage=$($LATEST $KERNELPATH kernel)
+ fi
+
if [ ! -f "$kpackage" ]; then
echo "kernel doesn't exist for $KERNELARCH. skipping arch"
continue