This commit is contained in:
iFargle 2024-02-05 19:19:52 +09:00
parent 39d18b3560
commit 6c70afdde3

View file

@ -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