summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-06-20 01:57:33 +0000
committerErik Troan <ewt@redhat.com>2001-06-20 01:57:33 +0000
commite4a41b5a1a08c2bd0e11b8a222d504f09f61b89a (patch)
tree401f732524ed84769ced875f93f8f27b03f53556 /scripts/mk-images
parent972e48a36c8242f94adb5cc547054526dca0ee73 (diff)
downloadanaconda-e4a41b5a1a08c2bd0e11b8a222d504f09f61b89a.tar.gz
anaconda-e4a41b5a1a08c2bd0e11b8a222d504f09f61b89a.tar.xz
anaconda-e4a41b5a1a08c2bd0e11b8a222d504f09f61b89a.zip
added support for cramfs and new build system
Diffstat (limited to 'scripts/mk-images')
-rwxr-xr-xscripts/mk-images23
1 files changed, 4 insertions, 19 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index dabdc7642..7d45f6526 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -612,19 +612,6 @@ makeImage () {
}
makeinstimage () {
- SIZE1=4096
- SIZE2=""
-
- while [ $(echo $1 | cut -c1-2) = "--" ]; do
- if [ $1 = "--size1" ]; then
- SIZE1=$2
- shift; shift
- elif [ $1 = "--size2" ]; then
- SIZE2=$2
- shift; shift
- fi
- done
-
imagename=$1
modlist=$(expandModuleSet "$2")
tmpdir=/tmp/instimage.dir.$$
@@ -636,12 +623,10 @@ makeinstimage () {
(cd $INSTIMGTEMPLATE; find . | cpio --quiet -p $tmpdir)
makemoduleball $tmpdir/modules "$modlist"
- if [ -n "$SIZE2" ]; then
- makeImage $tmpdir/usr $SIZE2 $INSTIMGPATH/${imagename}2.img
- rm -rf $tmpdir/usr
- fi
-
- makeImage $tmpdir $SIZE1 $INSTIMGPATH/${imagename}1.img
+ mkcramfs $tmpdir $INSTIMGPATH/${imagename}1.img
+ size=$(ls -l $INSTIMGPATH/${imagename}1.img | awk '{print $5}')
+ size=$(expr $size / 1024)
+ echo "Wrote $INSTIMGPATH/${imagename}1.img (${size}k)..."
rm -rf $tmpdir
}