summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-08-02 16:40:50 +0000
committerMatt Wilson <msw@redhat.com>2000-08-02 16:40:50 +0000
commite3ee138e9f39bec6ea3e3364d0b73a23aa2ff925 (patch)
tree822c6ae576fcffc746b64f981bc5c2c6aa8565df /scripts
parent8438e32a4f867869c6c9032b1ff5d9d3ca6ec59e (diff)
downloadanaconda-e3ee138e9f39bec6ea3e3364d0b73a23aa2ff925.tar.gz
anaconda-e3ee138e9f39bec6ea3e3364d0b73a23aa2ff925.tar.xz
anaconda-e3ee138e9f39bec6ea3e3364d0b73a23aa2ff925.zip
work around for NFS madness, do heavy IO in /tmp
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index ac8afc7c6..d4c53120e 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -20,7 +20,8 @@ TOPDIR=$(cd $TOPDIR; pwd)
KERNELPATH=$1
TOPDESTPATH=$2
IMAGEPATH=$2/images
- FULLMODPATH=$2/RedHat/instimage/modules
+ FULLMODPATH=/tmp/instimagemods.$$
+ FINALFULLMODPATH=$2/RedHat/instimage/modules
INSTIMGPATH=$2/RedHat/base
INSTIMGTEMPLATE=$3
IMGPATH=$2/RedHat/instimage
@@ -47,9 +48,11 @@ TOPDIR=$(cd $TOPDIR; pwd)
rm -rf $IMAGEPATH
rm -rf $FULLMODPATH
+ rm -rf $FINALFULLMODPATH
rm -rf $KERNELROOT
mkdir -p $IMAGEPATH
mkdir -p $FULLMODPATH
+ mkdir -p $FINALFULLMODPATH
mkdir -p $KERNELROOT
mkdir -p $INSTIMGPATH
@@ -274,8 +277,11 @@ makemainmodules() {
fi
rm -rf $FULLMODPATH
+ rm -rf $FINALFULLMODPATH
makemoduleball $extraargs $FULLMODPATH "$modlist"
+ cp -ar $FULLMODPATH $FINALFULLMODPATH
+ rm -rf $FULLMODPATH
}
makeinitrd() {