While the hostname on Linux systems is widely relied upon for different applications, setting the hostname is usually left up to user-space by the init system at boot. However, should any user-space processes try to read the system hostname prior to it being set, it could lead to unintended results. So now finally in 2022 there is a kernel parameter working its way upstream with “hostname=” should you want to ensure the hostname is set before user-space is started…
Source: Phoronix – Linux To Introduce The Ability To Set The Hostname Before Userspace Starts