systemd-firstboot
Initialize basic system settings on or before the first boot-up of a system. tldr-pages
On Linux
Linux
Operate on the specified directory instead of the root directory of the host system
sudo systemd-firstboot --root path/to/root_directoryIdentifySet the system keyboard layout
sudo systemd-firstboot --keymap keymapIdentifySet the system hostname
sudo systemd-firstboot --hostname hostnameIdentifySet the root user's password
sudo systemd-firstboot --root-password passwordIdentifyPrompt the user interactively for a specific basic setting
sudo systemd-firstboot --prompt settingIdentifyForce writing configuration even if the relevant files already exist
sudo systemd-firstboot --forceIdentifyRemove all existing files that are configured by systemd-firstboot
sudo systemd-firstboot --resetIdentifyRemove the password of the system's root user
sudo systemd-firstboot --delete-root-passwordIdentify