VirtualBox

Changeset 97017 in vbox


Ignore:
Timestamp:
Oct 5, 2022 8:09:52 PM (2 years ago)
Author:
vboxsync
Message:

Installer: Linux: rcvboxdrv.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 host 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/Installer/linux/vboxdrv.sh

    r97015 r97017  
    127127fi
    128128
     129# Check if update-secureboot-policy tool supports required commandline options.
     130update_secureboot_policy_supports()
     131{
     132    opt_name="$1"
     133    [ -n "$opt_name" ] || return
     134
     135    [ -z "$(update-secureboot-policy --help 2>&1 | grep "$opt_name")" ] && return
     136    echo "1"
     137}
     138
     139HAVE_UPDATE_SECUREBOOT_POLICY_TOOL=
    129140if type update-secureboot-policy >/dev/null 2>&1; then
    130     HAVE_UPDATE_SECUREBOOT_POLICY_TOOL=true
     141    [ "$(update_secureboot_policy_supports new-key)" = "1" -a "$(update_secureboot_policy_supports enroll-key)" = "1" ] && \
     142        HAVE_UPDATE_SECUREBOOT_POLICY_TOOL=true
    131143fi
    132144
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