Skip to content
Snippets Groups Projects
Commit 0d99556f authored by Jens Nolte's avatar Jens Nolte
Browse files

Ask for LUKS passphrase during installation

parent f563cfcd
No related branches found
No related tags found
No related merge requests found
......@@ -41,12 +41,16 @@ assert (typeOf swap) == "string";
set -u
set -o pipefail
${if luks then ''
read -r -s "luks?Please enter the new LUKS passphrase:"
'' else ""}
# Generate config
<<EOF
{
"blockDevice": null
${if luks then ''
,"luksKey": "foobar"
,"luksKey": "$luks"
'' else ""}
}
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment