From 91c40b3818971ec7ff6c0008cdfebfe08f9fa92b Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 7 Mar 2022 10:23:29 -0500 Subject: [PATCH] Update ubuntu.sh --- ct/ubuntu.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ct/ubuntu.sh b/ct/ubuntu.sh index 010b9738..538c93a4 100644 --- a/ct/ubuntu.sh +++ b/ct/ubuntu.sh @@ -145,6 +145,11 @@ STORAGE_TYPE=$(pvesm status -storage $(pct config $CTID | grep rootfs | awk -F " if [ "$STORAGE_TYPE" == "zfspool" ]; then warn "Some addons may not work due to ZFS not supporting 'fallocate'." fi +LXC_CONFIG=/etc/pve/lxc/${CTID}.conf +cat <> $LXC_CONFIG +lxc.cgroup2.devices.allow: a +lxc.cap.drop: +EOF echo -en "${GN} Starting LXC Container... " pct start $CTID