VirtualBox

Changeset 97013 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Oct 5, 2022 7:27:55 PM (2 years ago)
Author:
vboxsync
Message:

Additions: Linux: rcvboxadd.sh: Do not use update-secureboot-policy tool if it does not support required commandline switches, bugref:10287.

Unlike Ubuntu and simillar distributions, on Debian, update-secureboot-policy tool
does not support '--new-key' and '--enroll-key' command line switches. This makes it
no use for us on Debian. Moreover, 'update-secureboot-policy --enroll-key' will open
interactive user-input dialog which will result in 5 minutes hang on guest boot. So,
just don't use it in this case and let user to generate and enroll keys manually.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r97012 r97013  
    305305esac
    306306
    307 
     307# Check if update-secureboot-policy tool supports required commandline options.
     308update_secureboot_policy_supports()
     309{
     310    opt_name="$1"
     311    [ -n "$opt_name" ] || return
     312
     313    [ -z "$(update-secureboot-policy --help 2>&1 | grep "$opt_name")" ] && return
     314    echo "1"
     315}
     316
     317HAVE_UPDATE_SECUREBOOT_POLICY_TOOL=
    308318if type update-secureboot-policy >/dev/null 2>&1; then
    309     HAVE_UPDATE_SECUREBOOT_POLICY_TOOL=true
     319    [ "$(update_secureboot_policy_supports new-key)" = "1" -a "$(update_secureboot_policy_supports enroll-key)" = "1" ] && \
     320        HAVE_UPDATE_SECUREBOOT_POLICY_TOOL=true
    310321fi
    311322
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette