From 482cb1cdd4ebbb50276cfd9a6fe388bd76b95723 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Tue, 5 Nov 2019 00:27:01 +0800 Subject: [PATCH] update lfs-install script --- rootfs/sbin/lfs-install | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/rootfs/sbin/lfs-install b/rootfs/sbin/lfs-install index 680d569..7eca074 100755 --- a/rootfs/sbin/lfs-install +++ b/rootfs/sbin/lfs-install @@ -3,7 +3,17 @@ LFSMOUNT=$1 if [ ! "$LFSMOUNT" ]; then - echo "mounted location for install not define!" + cat << EOF +Usage: + $(basename $0) + +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