@@ -33,24 +33,32 @@ _dracut() {
33
33
--xz --zstd --no-compress --gzip --list-modules --show-modules --keep
34
34
--printsize --regenerate-all --noimageifnotneeded --early-microcode
35
35
--no-early-microcode --print-cmdline --reproducible --uefi
36
- --enhanced-cpio'
37
- [ARG]=' -a -m -o -d -I -k -c -L --kver --add --force-add --add-drivers
36
+ --enhanced-cpio --rebuild --aggresive-strip --hostonly-cmdline
37
+ --no-hostonly-cmdline --no-hostonly-default-device --nofscks
38
+ --hostonly-i18n --no-hostonly-i18n --lzo --lz4 --no-reproducible
39
+ --no-uefi --no-machineid --version
40
+ '
41
+ [ARG]=' -a -m -o -d -I -k -c -L -r -i
42
+ --kver --add --force-add --add-drivers --force-drivers
38
43
--omit-drivers --modules --omit --drivers --filesystems --install
39
- --fwdir --libdirs --fscks --add-fstab --mount --device --nofscks
44
+ --fwdir --libdirs --fscks --add-fstab --mount --device
40
45
--kmoddir --conf --confdir --tmpdir --stdlog --compress --prefix
41
46
--kernel-cmdline --sshkey --persistent-policy --install-optional
42
47
--loginstall --uefi-stub --kernel-image --squash-compressor
48
+ --sysroot --hostonly-mode --hostonly-nics --include --logfile
49
+ --uefi-splash-image
43
50
'
44
51
)
45
52
46
53
# shellcheck disable=SC2086
47
54
if __contains_word " $prev " ${OPTS[ARG]} ; then
48
55
case $prev in
49
- --kmoddir | -k | --fwdir | --confdir | --tmpdir)
56
+ --kmoddir | -k | --fwdir | --confdir | --tmpdir | -r | --sysroot )
50
57
comps=$( compgen -d -- " $cur " )
51
58
compopt -o filenames
52
59
;;
53
- -c | --conf | --sshkey | --add-fstab | --add-device | -I | --install | --install-optional)
60
+ -c | --conf | --sshkey | --add-fstab | --add-device | -I | \
61
+ --install | --install-optional | --uefi-splash-image)
54
62
comps=$( compgen -f -- " $cur " )
55
63
compopt -o filenames
56
64
;;
@@ -69,6 +77,15 @@ _dracut() {
69
77
echo [0-9]*
70
78
)
71
79
;;
80
+ --hostonly-mode)
81
+ comps=" sloppy strict"
82
+ ;;
83
+ --hostonly-nics)
84
+ comps=$(
85
+ cd /sys/class/net/ || return 0
86
+ printf -- " %s " *
87
+ )
88
+ ;;
72
89
* )
73
90
return 0
74
91
;;
0 commit comments