update lfs-install script
This commit is contained in:
parent
7d1002b4ed
commit
482cb1cdd4
1 changed files with 15 additions and 1 deletions
|
@ -3,7 +3,17 @@
|
|||
LFSMOUNT=$1
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
|
@ -24,7 +34,11 @@ fi
|
|||
unsquashfs -f -i -d $LFSMOUNT $ROOTSFS
|
||||
|
||||
if [ "$?" = "0" ]; then
|
||||
echo
|
||||
echo "Successfully installed to '$LFSMOUNT'"
|
||||
echo
|
||||
echo "Run 'lfs-chroot $LFSMOUNT' to chroot into $LFSMOUNT."
|
||||
echo "Then start configure your new installation."
|
||||
else
|
||||
echo "failed to install lfs system"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue