update lfs-install script

This commit is contained in:
emmett1 2019-11-05 00:27:01 +08:00
parent 7d1002b4ed
commit 482cb1cdd4

View file

@ -3,7 +3,17 @@
LFSMOUNT=$1 LFSMOUNT=$1
if [ ! "$LFSMOUNT" ]; then if [ ! "$LFSMOUNT" ]; then
echo "mounted location for install not define!" cat << EOF
Usage:
$(basename $0) <path to install>
Example:
$(basename $0) /mnt/lfs
Note:
You should first configure partition then mount it somewhere
EOF
exit 1 exit 1
fi fi
@ -24,7 +34,11 @@ fi
unsquashfs -f -i -d $LFSMOUNT $ROOTSFS unsquashfs -f -i -d $LFSMOUNT $ROOTSFS
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo
echo "Successfully installed to '$LFSMOUNT'" echo "Successfully installed to '$LFSMOUNT'"
echo
echo "Run 'lfs-chroot $LFSMOUNT' to chroot into $LFSMOUNT."
echo "Then start configure your new installation."
else else
echo "failed to install lfs system" echo "failed to install lfs system"
exit 1 exit 1