diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-10 22:37:09 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-10 22:37:09 +0000 |
commit | 89b4df0e2a6141cd5ca39dc4971c7419efc65133 (patch) | |
tree | dcf6925b74baaaba6257b49e5154346550919f54 | |
parent | 5aff07b4fb1c364dc3ab64359b79dce63ab4701b (diff) | |
download | drakx-89b4df0e2a6141cd5ca39dc4971c7419efc65133.tar drakx-89b4df0e2a6141cd5ca39dc4971c7419efc65133.tar.gz drakx-89b4df0e2a6141cd5ca39dc4971c7419efc65133.tar.bz2 drakx-89b4df0e2a6141cd5ca39dc4971c7419efc65133.tar.xz drakx-89b4df0e2a6141cd5ca39dc4971c7419efc65133.zip |
count space needed for the filesystem so that we don't end up with 3 mbytes of free space if /tmp was ext3
-rwxr-xr-x | tools/make_mdkinst_stage2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/make_mdkinst_stage2 b/tools/make_mdkinst_stage2 index 502dc14fd..48182616a 100755 --- a/tools/make_mdkinst_stage2 +++ b/tools/make_mdkinst_stage2 @@ -57,12 +57,12 @@ for i in /usr/share/keymaps /usr/share/xmodmap; do rm -rf $STAGE2TMP/$i done - +eval `find $STAGE2TMP | perl -MMDK::Common -lne '-l or $s += round_up(-s, 1024); $i++; END { print "size=",int($s/1024),";inodes=$i" }'`; mkdir -p $MNTPOINT 2>/dev/null for i in $MNTPOINT $STAGE2; do $SUDO umount $i 2>/dev/null ; done -dd if=/dev/zero of=$STAGE2 bs=1k count=$[ `du -s $STAGE2TMP | cut -f1` + 1024 + 200 ] -$MKE2FS -N 1100 $STAGE2 +dd if=/dev/zero of=$STAGE2 bs=1k count=$[ $size + 1024 + 200 ] +$MKE2FS -N $[$inodes + 50] $STAGE2 $SUDO mount -t ext2 $STAGE2 $MNTPOINT -o loop rmdir $MNTPOINT/lost+found |