--xz --zstd --no-compress --gzip --list-modules --show-modules --keep
--printsize --regenerate-all --noimageifnotneeded --early-microcode
--no-early-microcode --print-cmdline --reproducible --uefi
- --enhanced-cpio'
- [ARG]='-a -m -o -d -I -k -c -L --kver --add --force-add --add-drivers
+ --enhanced-cpio --rebuild --aggresive-strip --hostonly-cmdline
+ --no-hostonly-cmdline --no-hostonly-default-device --nofscks
+ --hostonly-i18n --no-hostonly-i18n --lzo --lz4 --no-reproducible
+ --no-uefi --no-machineid --version
+ '
+ [ARG]='-a -m -o -d -I -k -c -L -r -i
+ --kver --add --force-add --add-drivers --force-drivers
--omit-drivers --modules --omit --drivers --filesystems --install
- --fwdir --libdirs --fscks --add-fstab --mount --device --nofscks
+ --fwdir --libdirs --fscks --add-fstab --mount --device
--kmoddir --conf --confdir --tmpdir --stdlog --compress --prefix
--kernel-cmdline --sshkey --persistent-policy --install-optional
--loginstall --uefi-stub --kernel-image --squash-compressor
+ --sysroot --hostonly-mode --hostonly-nics --include --logfile
+ --uefi-splash-image
'
)
# shellcheck disable=SC2086
if __contains_word "$prev" ${OPTS[ARG]}; then
case $prev in
- --kmoddir | -k | --fwdir | --confdir | --tmpdir)
+ --kmoddir | -k | --fwdir | --confdir | --tmpdir | -r | --sysroot)
comps=$(compgen -d -- "$cur")
compopt -o filenames
;;
- -c | --conf | --sshkey | --add-fstab | --add-device | -I | --install | --install-optional)
+ -c | --conf | --sshkey | --add-fstab | --add-device | -I | \
+ --install | --install-optional | --uefi-splash-image)
comps=$(compgen -f -- "$cur")
compopt -o filenames
;;
echo [0-9]*
)
;;
+ --hostonly-mode)
+ comps="sloppy strict"
+ ;;
+ --hostonly-nics)
+ comps=$(
+ cd /sys/class/net/ || return 0
+ printf -- "%s " *
+ )
+ ;;
*)
return 0
;;