From 7603bfc2f989ad4654d4dea0d7d82e662bec3bc6 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 16 Nov 2022 04:01:40 -0500 Subject: [PATCH] Update emby-v4.sh unprivileged no device passthrough --- ct/emby-v4.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ct/emby-v4.sh b/ct/emby-v4.sh index 3a3096f4..c858bb44 100644 --- a/ct/emby-v4.sh +++ b/ct/emby-v4.sh @@ -264,6 +264,8 @@ export PCT_OPTIONS=" $PW " bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit +if [ "$CT_TYPE" == "0" ]; then + LXC_CONFIG=/etc/pve/lxc/${CTID}.conf LXC_CONFIG=/etc/pve/lxc/${CTID}.conf cat <>$LXC_CONFIG lxc.cgroup2.devices.allow: c 226:0 rwm @@ -273,6 +275,7 @@ lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir lxc.mount.entry: /dev/dri/renderD128 dev/renderD128 none bind,optional,create=file EOF +fi msg_info "Starting LXC Container" pct start $CTID msg_ok "Started LXC Container"