summaryrefslogtreecommitdiffstats
path: root/scripts/buildinstall
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-10 12:58:33 +0000
committerErik Troan <ewt@redhat.com>2000-05-10 12:58:33 +0000
commitdd6d9ccb20815b02cebae49c0df98dc03b0d82d4 (patch)
treea23dc4d6bdb78eae8cd4418b1d749e593bb850c2 /scripts/buildinstall
parent2c93c0ee314a5328d6c3f96d8bedbd43a1b4aef0 (diff)
downloadanaconda-dd6d9ccb20815b02cebae49c0df98dc03b0d82d4.tar.gz
anaconda-dd6d9ccb20815b02cebae49c0df98dc03b0d82d4.tar.xz
anaconda-dd6d9ccb20815b02cebae49c0df98dc03b0d82d4.zip
simplified mk-images paratmeters
Diffstat (limited to 'scripts/buildinstall')
-rwxr-xr-xscripts/buildinstall12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/buildinstall b/scripts/buildinstall
index 9610b9044..722145d18 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -5,6 +5,8 @@ if [ ! -d $1/RedHat/RPMS ]; then
exit 1
fi
+p=$1
+
BUILDINSTDIR=/tmp/buildinstall.tree.$$
rm -rf $BUILDINSTDIR
@@ -15,7 +17,7 @@ MK_IMAGES=./mk-images
if [ ! -f $UPD_INSTROOT ]; then
cd $BUILDINSTDIR
- rpm2cpio $1/RedHat/RPMS/anaconda-runtime-[0-9]* | cpio --quiet -iumd usr/lib/anaconda-runtime/upd-instroot
+ rpm2cpio $p/RedHat/RPMS/anaconda-runtime-[0-9]* | cpio --quiet -iumd usr/lib/anaconda-runtime/upd-instroot
mv usr/lib/anaconda-runtime/upd-instroot .
rm -rf usr
UPD_INSTROOT=$BUILDINSTDIR/upd-instroot
@@ -23,14 +25,14 @@ fi
if [ ! -f $MK_IMAGES ]; then
cd $BUILDINSTDIR
- rpm2cpio $1/RedHat/RPMS/anaconda-runtime-[0-9]* | cpio --quiet -iumd usr/lib/anaconda-runtime/mk-images*
+ rpm2cpio $p/RedHat/RPMS/anaconda-runtime-[0-9]* | cpio --quiet -iumd usr/lib/anaconda-runtime/mk-images*
mv usr/lib/anaconda-runtime/mk-images* .
rm -rf usr
MK_IMAGES=$BUILDINSTDIR/mk-images
fi
-$UPD_INSTROOT $1/RedHat/RPMS $1/image-template $1/RedHat/instimage
-$MK_IMAGES $1/RedHat/RPMS $1 $1/RedHat/instimage/modules $1/RedHat/base $1/image-template
+$UPD_INSTROOT $p/RedHat/RPMS $p/image-template $p/RedHat/instimage
+$MK_IMAGES $p/RedHat/RPMS $p $p/image-template
rm -rf $BUILDINSTDIR
-rm -rf $1/image-template $1/RedHat/instimage/usr/lib/anaconda-runtime
+rm -rf $p/image-template $p/RedHat/instimage/usr/lib/anaconda-runtime