浏览代码

Update ubuntu.sh

tteckster 3 年之前
父节点
当前提交
91c40b3818
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      ct/ubuntu.sh

+ 5 - 0
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 <<EOF >> $LXC_CONFIG
+lxc.cgroup2.devices.allow: a
+lxc.cap.drop:
+EOF
 
 echo -en "${GN} Starting LXC Container... "
 pct start $CTID