VirtualBox

vbox的更動 97013 路徑 trunk/src/VBox/Additions/linux


忽略:
時間撮記:
2022-10-5 下午07:27:55 (2 年 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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