Skip to content

Commit

Permalink
auth pass file
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Dec 6, 2023
1 parent c7cacb7 commit 525ae79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/.idea/
/.vscode/
/*.auth
/*.iso
/*.sum
/SHA256SUMS
/SHA256SUMS.sign
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ echo "ssh-ed25519 AAAA... bar" >> configs/authorized_keys

### Password

If the `-p` flag is not set, a random admin password will be generated.
If the `-p` flag is not set, a random admin password will be generated, printed to stdout and written to `<out_file>.auth`.

### Hostname

Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ xorriso -indev "${iso_file}" \
echo "user: ${username}"
echo "pass: ${password}"

if test "${password_mask}" == "false"; then
printf "user: %s\npass: %s\n" "${username}" "${password}" > "${out_file}.auth"
fi

rm -rf "${workdir}"

sha256sum "${out_file}" >"${out_file}.sum"

0 comments on commit 525ae79

Please sign in to comment.