#120 Add option to set static hostname
Closed: Can't Fix by pbrobinson. Opened by laped83.

We have a bunch of RPi's that we want to setup using ansible on first boot. We don't want setup anything manually and for that we need a static hostname and skip the initial-setup service.

arm-image-installer --image=Fedora-Server-40-1.14.aarch64.raw.xz --media=/dev/sdb --target=rpi4 --relabel --norootpass --addkey ssh_authorized_keys --args "systemd.mask=initial-setup.service systemd.hostname=mynewpi" --resizefs

This command works except that the systemd.hostname only sets a transient hostname that isn't announced to DHCP/DNS. For that to work a static hostname is needed, which can be set in the /etc/hostname file.

So an option to set a static hostname would be very handy when you have to configure many devices and just want to roll the desired state with ansible.


We've added initial support for wifi so this may make sense, but we have a new upstream so maybe report a new bug or even better a PR at the new upstream https://github.com/fedora-arm/arm-image-installer/

Metadata Update from @pbrobinson:
- Issue close_status updated to: Can't Fix
- Issue status updated to: Closed (was: Open)

Log in to comment on this ticket.

Metadata