Skip to content

Commit

Permalink
print admin data
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Oct 26, 2023
1 parent 4898fb4 commit 03aa463
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ sed -i "s#admin=.*#admin=\"${admin_user}\"#" "installer/late.sh"
# admin password
salt="$(pwgen -ns 16 1)"
hash="$(mkpasswd -m sha-512 -S "${salt}" "${admin_pass}")"
echo "user: hub"
echo "pass: ${admin_pass}"
sed -i "s#d-i passwd/user-password-crypted password.*#d-i passwd/user-password-crypted password ${hash}#" "installer/preseed.cfg"

# repack iso
Expand All @@ -67,3 +65,6 @@ xorriso -indev "${iso_file}" \
-outdev "${iso_file//.iso/-auto.iso}"

rm -rf "${workdir}"

echo "user: ${admin_user}"
echo "pass: ${admin_pass}"

0 comments on commit 03aa463

Please sign in to comment.