This commit is contained in:
CanbiZ
2025-03-31 15:01:06 +02:00
parent 79f92db110
commit 96602f913a
2 changed files with 11 additions and 3 deletions

View File

@@ -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