Skip to content

Commit

Permalink
generated hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Oct 26, 2023
1 parent 1e790fb commit 91306a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ Run `build.sh` to generate a hands-free iso image.

### Password

If the `-p` flag is not set, a new admin password will be generated automatically.
If the `-p` flag is not set, a random admin password will be generated.

### Hostname

If the `-n` flag is not set, a hash of the machines mac addresses will be used as hostname.

## Debug in VM

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ usage() {

username="admin"
password="$(pwgen -ns 16 1)"
hostname="machine"
hostname="$(cat /sys/class/net/en*/address | md5sum | tr -dc "[:alnum:]" | head -c 8)"
domain="example.org"
iso_url="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.2.0-amd64-netinst.iso"
sign_key="DA87E80D6294BE9B"
Expand Down

0 comments on commit 91306a9

Please sign in to comment.