bootctl: add "link" command
This commit is contained in:
@@ -43,7 +43,8 @@ _bootctl() {
|
||||
--efi-boot-option-description --efi-boot-option-description-with-device
|
||||
--secure-boot-auto-enroll --private-key
|
||||
--private-key-source --certificate --certificate-source
|
||||
--oldest'
|
||||
--oldest --keep-free --entry-title --entry-version --entry-commit
|
||||
-X --extra --tries-left'
|
||||
)
|
||||
|
||||
if __contains_word "$prev" ${OPTS[ARG]}; then
|
||||
@@ -62,7 +63,7 @@ _bootctl() {
|
||||
--entry-token)
|
||||
comps="machine-id os-id os-image-id auto literal:"
|
||||
;;
|
||||
--image|--root)
|
||||
--image|--root|-X|--extra)
|
||||
compopt -o nospace
|
||||
comps=$( compgen -A file -- "$cur" )
|
||||
;;
|
||||
@@ -89,7 +90,7 @@ _bootctl() {
|
||||
[STANDALONE]='help status install update remove is-installed random-seed list set-timeout set-timeout-oneshot cleanup'
|
||||
[BOOTENTRY]='set-default set-oneshot set-sysfail set-preferred unlink'
|
||||
[BOOLEAN]='reboot-to-firmware'
|
||||
[FILE]='kernel-identify kernel-inspect'
|
||||
[FILE]='kernel-identify kernel-inspect link'
|
||||
)
|
||||
|
||||
for ((i=0; i < COMP_CWORD; i++)); do
|
||||
|
||||
Reference in New Issue
Block a user