Hi
Suggest you look at either ignition or combustion to configure on install? It should by default use dhcp along with NetworkManager (which is the default).
Network configuration is just a flat text file, craft your own?
ignition example, creates the file from inline: | onwards;
- path: /etc/NetworkManager/system-connections/static-ip.nmconnection
mode: 0600
contents:
inline: |
[connection]
id=static-ip
type=ethernet
interface-name=enp1s0
[ipv4]
address1=192.168.99.99/24,192.168.99.1
dns=192.168.99.14;192.168.99.13;8.8.8.8;
dns-search=example.com;
method=manual
[ipv6]
addr-gen-mode=stable-privacy
method=disabled
I use vagrant here to spin up images in kvm, likewise I use ignition for some initial configuration, the only image I have used is for the MicroOS desktop install on bare-metal.