diff --git a/docs/install.sh b/docs/install.sh index 7181f988..1f223d9b 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -77,7 +77,9 @@ 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 + sudo cp /tmp/swap.key /mnt/etc/swap.key sudo cp /tmp/swap.key /mnt/tmp/swap.key + sudo chmod 0400 /mnt/etc/swap.key sudo chmod 0400 /mnt/tmp/swap.key fi fi \ No newline at end of file