Changed rootmb to rootkb
This commit is contained in:
parent
c594325b32
commit
3cfb1df639
1 changed files with 5 additions and 5 deletions
|
@ -103,9 +103,9 @@ fi
|
||||||
|
|
||||||
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
||||||
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
||||||
ROOTMB=2
|
ROOTKB=1400
|
||||||
ROOTSECTS="`expr $ROOTMB \* 1024 \* 2`"
|
ROOTSECTS="`expr $ROOTKB \* 2`"
|
||||||
ROOTBLOCKS="`expr $ROOTMB \* 1024 \* 1024 / $BS`"
|
ROOTBLOCKS="`expr $ROOTKB \* 1024 / $BS`"
|
||||||
|
|
||||||
if [ "$COPY" -ne 1 ]
|
if [ "$COPY" -ne 1 ]
|
||||||
then
|
then
|
||||||
|
@ -114,7 +114,7 @@ then
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Warning: I'm going to mkfs $RAM! It has to be at least $ROOTMB MB."
|
echo "Warning: I'm going to mkfs $RAM! It has to be at least $ROOTKB KB."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Temporary (sub)partition to use to make the /usr FS image? "
|
echo "Temporary (sub)partition to use to make the /usr FS image? "
|
||||||
echo "I need $USRMB MB. It will be mkfsed!"
|
echo "I need $USRMB MB. It will be mkfsed!"
|
||||||
|
@ -159,7 +159,7 @@ mkdir -m 1777 $RELEASEDIR/tmp
|
||||||
mount $TMPDISK2 $RELEASEDIR/tmp
|
mount $TMPDISK2 $RELEASEDIR/tmp
|
||||||
|
|
||||||
echo " * Zeroing $TMPDISK"
|
echo " * Zeroing $TMPDISK"
|
||||||
#dd if=/dev/zero of=$TMPDISK bs=$BS count=$USRBLOCKS
|
dd if=/dev/zero of=$TMPDISK bs=$BS count=$USRBLOCKS
|
||||||
mkfs -B $BS -b $USRBLOCKS $TMPDISK || exit
|
mkfs -B $BS -b $USRBLOCKS $TMPDISK || exit
|
||||||
echo " * Mounting $TMPDISK as $RELEASEDIR/usr"
|
echo " * Mounting $TMPDISK as $RELEASEDIR/usr"
|
||||||
mount $TMPDISK $RELEASEDIR/usr || exit
|
mount $TMPDISK $RELEASEDIR/usr || exit
|
||||||
|
|
Loading…
Reference in a new issue