summaryrefslogtreecommitdiffstats
path: root/scripts/buildinstall
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-04-05 20:29:44 +0000
committerMatt Wilson <msw@redhat.com>2000-04-05 20:29:44 +0000
commit66f00755be0b2f410c09a06ba1b5a354765ebd6f (patch)
treec4f5d647af34410b572f8ed36535abc1820a5818 /scripts/buildinstall
parentb9c3684f55f0f379e81e7cdf06dba1f684d033d5 (diff)
downloadanaconda-66f00755be0b2f410c09a06ba1b5a354765ebd6f.tar.gz
anaconda-66f00755be0b2f410c09a06ba1b5a354765ebd6f.tar.xz
anaconda-66f00755be0b2f410c09a06ba1b5a354765ebd6f.zip
*** empty log message ***
Diffstat (limited to 'scripts/buildinstall')
-rwxr-xr-xscripts/buildinstall35
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/buildinstall b/scripts/buildinstall
new file mode 100755
index 000000000..b5ced2422
--- /dev/null
+++ b/scripts/buildinstall
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+if [ ! -d $1/RedHat/RPMS ]; then
+ echo $1 is not a Red Hat image >&2
+ exit 1
+fi
+
+BUILDINSTDIR=/tmp/buildinstall
+
+rm -rf $BUILDINSTDIR
+mkdir -p $BUILDINSTDIR
+
+UPD_INSTROOT=./upd-instroot
+MK_IMAGES=./mk-images
+
+if [ ! -f $UPD_INSTROOT ]; then
+ cd $BUILDINSTDIR
+ rpm2cpio < $1/RedHat/RPMS/anaconda-runtime[0-9]* | cpio -ivumd usr/lib/anaconda-runtime/upd-instroot
+ mv usr/lib/anaconda-runtime/upd-instroot .
+ rm -rf usr
+ UPD_INSTROOT=$BUILDINSTDIR/upd-instroot
+fi
+
+if [ ! -f $MK_IMAGES ]; then
+ cd $BUILDINSTDIR
+ rpm2cpio < $1/RedHat/RPMS/anaconda-runtime[0-9]* | cpio -ivumd usr/lib/anaconda-runtime/mk-images
+ mv usr/lib/anaconda-runtime/mk-images .
+ rm -rf usr
+ UPD_INSTROOT=$MK_IMAGES/mk-images
+fi
+
+$UPD_INSTROOT $1/RedHat/RPMS $1
+$MK_IMAGES dist-7.0 /mnt/redhat/test/oot/i386/images /mnt/redhat/test/oot/i386/RedHat/instimage/modules
+
+