On older versions of Ubuntu (using the Classical Installer), I was able to populate the hostname from my DHCP server. I then passed it by using the netcfg/get_hostname=
option of the kernel parameters.
As of 20.04, the Classical Installer no longer exists. How am I able to change the hostname using my DHCP server instead of fixed hostname in the user-data file?
I have tried late-commands to use a shell script to change the hostname with sed, however it has not worked.