From 59b0758b9be147423288fa66f23a1128907eafdd Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 1 Feb 2024 20:21:19 +0900 Subject: [PATCH] test --- docs/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install.sh b/docs/install.sh index 51aed88b..c0b678a9 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -38,7 +38,7 @@ if [ ! -e "nixos/hosts/$TARGET_HOST/disks.nix" ]; then fi # Create a key for encrypted swap, if needed -openssl rand -hex 512 > /etc/swap.key +sudo echo -n "$(head -c32 /dev/random | base64)" > /etc/swap.key echo "WARNING! The disks in $TARGET_HOST are about to get wiped" echo " NixOS will be re-installed"