summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-09-04 15:40:26 +0000
committerJeremy Katz <katzj@redhat.com>2003-09-04 15:40:26 +0000
commit3670d962a6f7da0f8b9d6f5cb22e7c2a001a48c5 (patch)
tree8cdfdf80b163f1f8b4e2cd05b4daea09a58e2c76 /scripts/mk-images
parent41f557934752e40408cb890e2e9fd0b6ee24633a (diff)
downloadanaconda-3670d962a6f7da0f8b9d6f5cb22e7c2a001a48c5.tar.gz
anaconda-3670d962a6f7da0f8b9d6f5cb22e7c2a001a48c5.tar.xz
anaconda-3670d962a6f7da0f8b9d6f5cb22e7c2a001a48c5.zip
some changes for macppc from jlaska. tweaked pseries images to end up in
images/pseries/, just continue if a kernel arch doesn't exist. for mac to work, still need to be able to create the boot.iso (which are hybrid hfs cds I think)
Diffstat (limited to 'scripts/mk-images')
-rwxr-xr-xscripts/mk-images9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index d9bcada4e..8c9558d74 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -874,7 +874,7 @@ fi
# Find the kernel, unpack it, and verify it
vertag="BOOT"
if [ "$BUILDARCH" = "ppc" -o "$BUILDARCH" = "ppc64" ]; then
- arches="ppc64pseries ppc64iseries"
+ arches="ppc64pseries ppc64iseries ppc"
elif [ "$BUILDARCH" = "i386" ]; then
arches="i386 i586"
else
@@ -886,11 +886,16 @@ for KERNELARCH in $arches; do
kpackage=$($LATEST $KERNELPATH kernel-$kernelvers)
mkdir -p $KERNELROOT/lib/modules/misc
if [ ! -f "$kpackage" ]; then
- echo "kernel-$kernelvers does not exist -- using kernel package"
+ echo "kernel-$kernelvers does not exist for $KERNELARCH -- using kernel package"
kpackage=$($LATEST $KERNELPATH kernel)
kernelvers=""
fi
+ if [ ! -f "$kpackage" ]; then
+ echo "kernel doesn't exist for $KERNELARCH. skipping arch"
+ continue
+ fi
+
ppackage=$($LATEST $KERNELPATH hwdata)
if [ ! -f "$ppackage" ]; then
ppackage=""