sysinstall: optionally, automatically pick target block device after a settle timeout

Let's make sysinstall useful for truly unattended installations, and let
it it automatically pick a target disk after some settlement time-out.
This commit is contained in:
Lennart Poettering
2026-09-23 10:14:25 +02:00
parent 647fa40327
commit ce8d684ed8
9 changed files with 547 additions and 5 deletions
+4 -3
View File
@@ -32,8 +32,9 @@ _systemd_sysinstall() {
local comps
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} words cword
local -A OPTS=(
[STANDALONE]='-h --help --version'
[ARG]='--welcome
[STANDALONE]='-h --help --version --device-auto'
[ARG]='--device-auto-timeout
--welcome
--chrome
--erase
--confirm
@@ -68,7 +69,7 @@ _systemd_sysinstall() {
comps=$(compgen -A file -- "$cur")
compopt -o filenames
;;
--set-credential)
--set-credential|--device-auto-timeout)
comps=''
;;
esac