Fix installer

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-01-27 18:59:07 +00:00
parent 69578a83fc
commit 20da47f994
4 changed files with 6 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ set_password_file() {
exit 1
fi
ln -sf "$password_file" /tmp/installer.key
ln -sf "$(realpath "$password_file")" /tmp/installer.key
else
echo "Enter password for LUKS encryption:"
IFS= read -r -s password
@@ -68,6 +68,7 @@ set_password_file() {
prepare_disk() {
local disko_mode="$1"
mkdir -p /mnt
root=$(mktemp -d /mnt/install.XXXXXX)
disko -m "$disko_mode" --yes-wipe-all-disks --root-mountpoint "$root" "$flake/hosts/$host/format.nix" --arg device "\"$device\""
}