diff --git a/restore.sh b/restore.sh index 3609788..5846c02 100644 --- a/restore.sh +++ b/restore.sh @@ -44,8 +44,8 @@ do read -p "Target drive is " targetDrive targetDrive=/dev/$targetDrive done -echo "Encrypted? (Y/n) " -while read -r -n 1 answer ; do +#encrypted? +while read -r -n 1 answer -p "Encrypted? (Y/N)" ; do if [[ $answer = [YyNn] ]]; then [[ $answer = [Yy] ]] && encryptedDevice=true && echo "WARNING You will be asked for password later" #read -p "Password: " encryptedPassword [[ $answer = [Nn] ]] && encryptedDevice=false @@ -176,7 +176,7 @@ echo "==> mkinitcpio and update grub..." #cat /mnt/etc/mkinitcpio.conf | sed 's/encrypt //' > /mnt/etc/mkinitcpio.conf #remove cryptdevice, no encrypted fs today :c #chroot env -cat << EOF | chroot /mnt +cat << EOF | chroot /mnt /bin/sh mkinitcpio -P grub-mkconfig -o /boot/grub/grub.cfg grub-install $targetDrive