systemd-sysinstall
Install an operating system onto a target disk
TLDR
SYNOPSIS
systemd-sysinstall [options] [block-device]
DESCRIPTION
systemd-sysinstall is a terminal installer for an operating system image. It is meant to start when an installer medium boots, and it can also be run from a shell. It picks a target disk, optionally erases it, builds the partition layout with systemd-repart, copies locale, keymap, and timezone as encrypted credentials, installs a unified kernel image and systemd-boot with bootctl, and can reboot.It does not ask for a user account or a root password. Those are left to the new system's first boot, for example systemd-firstboot. Extra credentials, such as a root SSH key, can be passed with --load-credential.Added in systemd 261.
PARAMETERS
--definitions directory
Partition definitions for systemd-repart. The default is `/usr/lib/repart.sysinstall.d/` when that directory has files, otherwise `/usr/lib/repart.d/`.--erase yes|no
Erase the target disk. When omitted, the installer asks.--confirm yes|no
Ask before writing. The default is yes.--variables yes|no
Register the new boot loader in the firmware boot menu. When omitted, the installer asks.--kernel path
Unified kernel image to install. The default is the kernel that is currently booted.--reboot yes|no
Reboot after a successful install. The default is no.--summary yes|no
Show the planned install before confirmation. The default is yes.--welcome yes|no
Show the welcome text. The default is yes.--chrome yes|no
Show the colored bars of the terminal interface. The default is yes.--set-credential id:value
Encrypt a credential and place it next to the installed kernel. May be repeated. Use --load-credential for secrets.--load-credential id:path
Same as --set-credential, reading the value from a file or an `AF_UNIX` socket.--copy-locale yes|no
Copy the running system's locale. The default is yes.--copy-keymap yes|no
Copy the running system's keymap. The default is yes.--copy-timezone yes|no
Copy the running system's timezone. The default is yes.--mute-console yes|no
Hide kernel and service-manager logs on this console while the installer runs. The default is no.-h, --help
Show help and exit.--version
Print the version and exit.
CAVEATS
--erase yes destroys the contents of the target disk. The tool installs the OS image that the installer medium was built with, using the repart definitions on that medium. It returns 0 on success and a non-zero status on failure.
SEE ALSO
systemd-repart(8), bootctl(1), systemd-firstboot(1), systemd-creds(1)
