No /usr/src.* shenanigans any more.
This commit is contained in:
parent
82ae9b9c5c
commit
f9e4768eb4
3 changed files with 28 additions and 57 deletions
|
@ -22,26 +22,6 @@ USRKB="`cat /.usrkb`"
|
||||||
TOTALMB="`expr 3 + $USRKB / 1024 + $ROOTMB`"
|
TOTALMB="`expr 3 + $USRKB / 1024 + $ROOTMB`"
|
||||||
ROOTFILES="`cat /.rootfiles`"
|
ROOTFILES="`cat /.rootfiles`"
|
||||||
USRFILES="`cat /.usrfiles`"
|
USRFILES="`cat /.usrfiles`"
|
||||||
EXTRASRCFILES="`cat /.extrasrcfiles`"
|
|
||||||
EXTRASRCKB="`cat /.extrasrckb`"
|
|
||||||
|
|
||||||
# Install size without extra sources (rounded up)
|
|
||||||
NOSRCMB="`expr $TOTALMB - $EXTRASRCKB / 1024`"
|
|
||||||
NOSRCUSRFILES="`expr $USRFILES - $EXTRASRCFILES`"
|
|
||||||
|
|
||||||
if [ "$EXTRASRCKB" -lt 1 ]
|
|
||||||
then
|
|
||||||
echo "Are you really running from CD?"
|
|
||||||
echo "Something wrong with the extra-source-kb on CD."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$EXTRASRCFILES" -lt 1 ]
|
|
||||||
then
|
|
||||||
echo "Are you really running from CD?"
|
|
||||||
echo "Something wrong with the extra-source-files estimate on CD."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$TOTALMB" -lt 1 ]
|
if [ "$TOTALMB" -lt 1 ]
|
||||||
then
|
then
|
||||||
|
@ -199,30 +179,35 @@ done
|
||||||
# end Step 2
|
# end Step 2
|
||||||
|
|
||||||
# begin Step 3
|
# begin Step 3
|
||||||
step3=""
|
#step3=""
|
||||||
while [ "$step3" != ok ]
|
#while [ "$step3" != ok ]
|
||||||
do
|
#do
|
||||||
echo ""
|
# echo ""
|
||||||
echo " --- Step 3: Select minimal or full distribution -----------------------"
|
# echo " --- Step 3: Select minimal or full distribution -----------------------"
|
||||||
echo ""
|
# echo ""
|
||||||
echo "You can install MINIX as (M)inimal or (F)ull. (M)inimal"
|
# echo "You can install MINIX as (M)inimal or (F)ull. (M)inimal"
|
||||||
echo "includes only the binary system and basic system sources."
|
# echo "includes only the binary system and basic system sources."
|
||||||
echo "(F)ull also includes commands sources."
|
# echo "(F)ull also includes commands sources."
|
||||||
echo ""
|
# echo ""
|
||||||
echo "Please select:"
|
# echo "Please select:"
|
||||||
echo " (M)inimal install (only basic sources) ($NOSRCMB MB required)"
|
# echo " (M)inimal install (only basic sources) ($NOSRCMB MB required)"
|
||||||
echo " (F)ull install (full install) ($TOTALMB MB required)"
|
# echo " (F)ull install (full install) ($TOTALMB MB required)"
|
||||||
echo " "
|
# echo " "
|
||||||
echo -n "Basic (M)inimal or (F)ull install? [F] "
|
# echo -n "Basic (M)inimal or (F)ull install? [F] "
|
||||||
read conf
|
# read conf
|
||||||
case "$conf" in
|
# case "$conf" in
|
||||||
"") step3="ok"; nobigsource="" ;;
|
# "") step3="ok"; nobigsource="" ;;
|
||||||
[Ff]*) step3="ok"; nobigsource="" ;;
|
# [Ff]*) step3="ok"; nobigsource="" ;;
|
||||||
[Mm]*) step3="ok"; nobigsource="1"; TOTALMB=$NOSRCMB; USRFILES=$NOSRCUSRFILES ;;
|
# [Mm]*) step3="ok"; nobigsource="1"; TOTALMB=$NOSRCMB; USRFILES=$NOSRCUSRFILES ;;
|
||||||
esac
|
# esac
|
||||||
done
|
#done
|
||||||
# end Step 3
|
# end Step 3
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo " --- Step 3: Selecting full distribution -------------------------------"
|
||||||
|
echo ""
|
||||||
|
nobigsource=""
|
||||||
|
|
||||||
# begin Step 4
|
# begin Step 4
|
||||||
step4=""
|
step4=""
|
||||||
while [ "$step4" != ok ]
|
while [ "$step4" != ok ]
|
||||||
|
@ -549,24 +534,13 @@ echo ""
|
||||||
mount /dev/$usr /mnt >/dev/null || exit # Mount the intended /usr.
|
mount /dev/$usr /mnt >/dev/null || exit # Mount the intended /usr.
|
||||||
|
|
||||||
(cd /usr || exit 1
|
(cd /usr || exit 1
|
||||||
if [ "$nobigsource" = 1 ]
|
list="`ls | fgrep -v install`"
|
||||||
then list="`ls | fgrep -v src. | fgrep -v install`"
|
|
||||||
else list="`ls | fgrep -v install`"
|
|
||||||
fi
|
|
||||||
for d in $list
|
for d in $list
|
||||||
do
|
do
|
||||||
cpdir -v $d /mnt/$d
|
cpdir -v $d /mnt/$d
|
||||||
done
|
done
|
||||||
) | progressbar "$USRFILES" || exit # Copy the usr floppy.
|
) | progressbar "$USRFILES" || exit # Copy the usr floppy.
|
||||||
|
|
||||||
if [ -d /mnt/src.commands ]
|
|
||||||
then mv /mnt/src.commands /mnt/src/commands
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d /mnt/src.contrib ]
|
|
||||||
then mv /mnt/src.contrib /mnt/src/contrib
|
|
||||||
fi
|
|
||||||
# Set inet.conf to correct driver
|
|
||||||
if [ -n "$driver" ]
|
if [ -n "$driver" ]
|
||||||
then echo "$driverargs" >$MYLOCALRC
|
then echo "$driverargs" >$MYLOCALRC
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -20,7 +20,6 @@ make clean
|
||||||
su bin -c 'makewhatis /usr/man'
|
su bin -c 'makewhatis /usr/man'
|
||||||
su bin -c 'makewhatis /usr/gnu/man'
|
su bin -c 'makewhatis /usr/gnu/man'
|
||||||
su bin -c 'makewhatis /usr/local/man'
|
su bin -c 'makewhatis /usr/local/man'
|
||||||
mv /usr/src/commands /usr/src.commands
|
|
||||||
binsizes normal
|
binsizes normal
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -324,8 +324,6 @@ echo $version_pretty >$RELEASEDIR/etc/version
|
||||||
echo " * Counting files"
|
echo " * Counting files"
|
||||||
extrakb=`du -s $RELEASEDIR/usr/install | awk '{ print $1 }'`
|
extrakb=`du -s $RELEASEDIR/usr/install | awk '{ print $1 }'`
|
||||||
expr `df $TMPDISK | tail -1 | awk '{ print $4 }'` - $extrakb >$RELEASEDIR/.usrkb
|
expr `df $TMPDISK | tail -1 | awk '{ print $4 }'` - $extrakb >$RELEASEDIR/.usrkb
|
||||||
du -s $RELEASEDIR/usr/src.* | awk '{ t += $1 } END { print t }' >$RELEASEDIR/.extrasrckb
|
|
||||||
( for d in $RELEASEDIR/usr/src.*; do find $d; done) | wc -l >$RELEASEDIR/.extrasrcfiles
|
|
||||||
find $RELEASEDIR/usr | fgrep -v /install/ | wc -l >$RELEASEDIR/.usrfiles
|
find $RELEASEDIR/usr | fgrep -v /install/ | wc -l >$RELEASEDIR/.usrfiles
|
||||||
find $RELEASEDIR -xdev | wc -l >$RELEASEDIR/.rootfiles
|
find $RELEASEDIR -xdev | wc -l >$RELEASEDIR/.rootfiles
|
||||||
echo " * Zeroing remainder of temporary areas"
|
echo " * Zeroing remainder of temporary areas"
|
||||||
|
|
Loading…
Reference in a new issue