From 4d5ee707b338974c4ccee0171087785ae41cf322 Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 1 May 2023 03:42:40 +0200 Subject: [PATCH] typo --- src/root/install_nanodesk.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/root/install_nanodesk.sh b/src/root/install_nanodesk.sh index 4095a6c..88d5c91 100755 --- a/src/root/install_nanodesk.sh +++ b/src/root/install_nanodesk.sh @@ -8,6 +8,7 @@ CHROOTCMD="chroot /mnt/" +target="$1" message () { echo "== " $1 @@ -45,8 +46,6 @@ Options: exit 1 fi -target="$1" - if [ ! -b "$target" ] then message "$target does not exist or is not a blockdevice." @@ -68,16 +67,14 @@ test "$DOINSTALL" == "YES" || error message "... GOOD LUCK!" message "mounting $target to /mnt/" mount $target /mnt || error -message "copy systemfiles" +message "copy systemfiles" rsync -aHx / /mnt/ || error message "bind mount dev proc sys" - for m in dev proc sys do mount -o bind /$m /mnt/$m || error - done message "creating /boot directory"