diff --git a/docs/install.sh b/docs/install.sh index 16a291ce..8a911a83 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -79,7 +79,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then # If there is a keyfile for a data disk, put copy it to the root partition and # ensure the permissions are set appropriately. - if [[ -f "/tmp/swap.key" ]]; then + if [[ -f "/mnt-root/etc/swap.key" ]]; then sudo cp /mnt-root/etc/swap.key /mnt/etc/swap.key sudo chmod 0400 /mnt/etc/swap.key fi