fix bug
This commit is contained in:
@@ -55,14 +55,14 @@ function passthrough_intel_to_lxc() {
|
||||
|
||||
function install_intel_tools_in_ct() {
|
||||
local ctid="$1"
|
||||
local install_nonfree="$2"
|
||||
|
||||
if is_alpine_ct "$ctid"; then
|
||||
msg warn "Skipping Intel tool install for Alpine CT $ctid"
|
||||
return 0
|
||||
fi
|
||||
|
||||
read -rp "Install non-free intel-media-va-driver (Debian only)? [y/N]: " confirm
|
||||
if [[ "${confirm,,}" =~ ^(y|yes)$ ]]; then
|
||||
if [[ "$install_nonfree" == "yes" ]]; then
|
||||
msg info "Enabling non-free sources in $ctid..."
|
||||
pct exec "$ctid" -- bash -c "tee /etc/apt/sources.list.d/non-free.list >/dev/null" <<'EOF'
|
||||
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||
|
||||
Reference in New Issue
Block a user