summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-28 14:36:24 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-28 14:36:24 +0000
commit509794cf665133f32ca6c5e5cf6efe1fb57d1e27 (patch)
tree1282236aab53a1926caf6e7e161bb040e4e2e102
parentbf1f85bac898075e0ca19924bccce873cad40b6b (diff)
downloaddrakx-509794cf665133f32ca6c5e5cf6efe1fb57d1e27.tar
drakx-509794cf665133f32ca6c5e5cf6efe1fb57d1e27.tar.gz
drakx-509794cf665133f32ca6c5e5cf6efe1fb57d1e27.tar.bz2
drakx-509794cf665133f32ca6c5e5cf6efe1fb57d1e27.tar.xz
drakx-509794cf665133f32ca6c5e5cf6efe1fb57d1e27.zip
add a few more inodes to the second stage ramdisk, got bitten by
a sucking no space left on device :/ will also print available inodes when creating ramdisk so that we can see if our computing was quite good
-rwxr-xr-xtools/make_mdkinst_stage23
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/make_mdkinst_stage2 b/tools/make_mdkinst_stage2
index abcd65624..7af43d726 100755
--- a/tools/make_mdkinst_stage2
+++ b/tools/make_mdkinst_stage2
@@ -68,7 +68,7 @@ eval `find $STAGE2TMP | perl -MMDK::Common -lne '-l or $s += round_up(-s, 1024);
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=$[ $size + 1024 + 200 ]
-$MKE2FS -N $[$inodes + 50] $STAGE2
+$MKE2FS -N $[$inodes + 200] $STAGE2
$SUDO mount -t ext2 $STAGE2 $MNTPOINT -o loop
rmdir $MNTPOINT/lost+found
@@ -76,6 +76,7 @@ $SUDO cp -a $STAGE2TMP/* $MNTPOINT || exit 1
$SUDO rm -rf $STAGE2TMP
df $MNTPOINT
+df -i $MNTPOINT
$SUDO umount $STAGE2
rmdir $MNTPOINT