summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images.s390
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-09-11 18:22:34 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-09-11 18:22:34 +0000
commit7dd7abcc692ce8dec30b1758f096de5af55fb3dc (patch)
tree4fbdbb3e45dbc2b230de317e7e8635dd5fa92605 /scripts/mk-images.s390
parent586970dacc60b937e18c2d62a509c539ed7f8444 (diff)
downloadanaconda-7dd7abcc692ce8dec30b1758f096de5af55fb3dc.tar.gz
anaconda-7dd7abcc692ce8dec30b1758f096de5af55fb3dc.tar.xz
anaconda-7dd7abcc692ce8dec30b1758f096de5af55fb3dc.zip
* scripts/mk-images.s390: Use the size of the actual initrd.img for
the value in initrd.size. * utils/Makefile: Only build and install geninitrdsz on zSeries.
Diffstat (limited to 'scripts/mk-images.s390')
-rw-r--r--scripts/mk-images.s3903
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mk-images.s390 b/scripts/mk-images.s390
index fd5d7499c..eedfc585b 100644
--- a/scripts/mk-images.s390
+++ b/scripts/mk-images.s390
@@ -8,7 +8,8 @@ makeBootImages() {
--initrdsize 20000 \
--loaderbin loader \
--modules "$INITRDMODS $S390MODS"
- $GENINITRDSZ 12288475 $TOPDESTPATH/images/initrd.size
+ sz=$(ls -l $TOPDESTPATH/images/initrd.img | awk '{print $5}')
+ $GENINITRDSZ $sz $TOPDESTPATH/images/initrd.size
cp -vf $KERNELROOT/boot/${KERNELNAME}-${version} $TOPDESTPATH/images/kernel.img
cp -v $BOOTDISKDIR/generic.prm $TOPDESTPATH/images/generic.prm