summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-18 20:32:00 +0000
committerErik Troan <ewt@redhat.com>2000-05-18 20:32:00 +0000
commit92bc68a063fc78b1d13c85624fa221bb0582e9a7 (patch)
treef18edbc7e8e29b17afc9439f3fb499985cd7366b /scripts
parent6942cca8c5a8237538a145ee3f287db8e489759c (diff)
downloadanaconda-92bc68a063fc78b1d13c85624fa221bb0582e9a7.tar.gz
anaconda-92bc68a063fc78b1d13c85624fa221bb0582e9a7.tar.xz
anaconda-92bc68a063fc78b1d13c85624fa221bb0582e9a7.zip
be condition wrt --size2
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index d0ec1d790..6c439ba19 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -421,7 +421,7 @@ makeImage () {
makeinstimage () {
SIZE1=4096
- SIZE2=4096
+ SIZE2=""
while [ $(echo $1 | cut -c1-2) = "--" ]; do
if [ $1 = "--size1" ]; then
@@ -444,8 +444,11 @@ makeinstimage () {
(cd $INSTIMGTEMPLATE; find . | cpio --quiet -p $tmpdir)
makemoduleball $tmpdir/modules "$modlist"
- makeImage $tmpdir/usr $SIZE1 $INSTIMGPATH/${imagename}2.img
- rm -rf $tmpdir/usr
+ if [ -n "$SIZE2" ]; then
+ makeImage $tmpdir/usr $SIZE1 $INSTIMGPATH/${imagename}2.img
+ rm -rf $tmpdir/usr
+ fi
+
makeImage $tmpdir $SIZE2 $INSTIMGPATH/${imagename}1.img
rm -rf $tmpdir
}