systemd-firstboot Command Examples

Initialize basic system settings on or before the first boot-up of a system. More information: https://www.freedesktop.org/software/systemd/man/systemd-firstboot.html.

sudo systemd-firstboot --root={{path/to/root_directory}}

sudo systemd-firstboot --keymap={{keymap}}

sudo systemd-firstboot --hostname={{hostname}}

sudo systemd-firstboot --root-password={{password}}

sudo systemd-firstboot --prompt={{setting}}

sudo systemd-firstboot --force

sudo systemd-firstboot --reset

sudo systemd-firstboot --delete-root-password