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
|
||||
|
||||
@@ -36,6 +36,10 @@ _bootctl_unlink() {
|
||||
_bootctl_comp_ids
|
||||
}
|
||||
|
||||
_bootctl_link() {
|
||||
_files
|
||||
}
|
||||
|
||||
_bootctl_kernel-identify() {
|
||||
_files
|
||||
}
|
||||
@@ -70,6 +74,7 @@ _bootctl_reboot-to-firmware() {
|
||||
"set-timeout:Set the menu timeout"
|
||||
"set-timeout-oneshot:Set the menu timeout for the next boot only"
|
||||
"unlink:Remove boot loader entry"
|
||||
"link:Add boot loader entry"
|
||||
"cleanup:Remove files in ESP not referenced in any boot entry"
|
||||
"kernel-identify:Identify kernel image type"
|
||||
"kernel-inspect:Print details about the kernel image"
|
||||
|
||||
Reference in New Issue
Block a user