Browse Source

Update debian.sh

tteckster 3 years ago
parent
commit
30b4378eb3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ct/debian.sh

+ 5 - 0
ct/debian.sh

@@ -147,6 +147,11 @@ STORAGE_TYPE=$(pvesm status -storage $(pct config $CTID | grep rootfs | awk -F "
 if [ "$STORAGE_TYPE" == "zfspool" ]; then
 if [ "$STORAGE_TYPE" == "zfspool" ]; then
   warn "Some addons may not work due to ZFS not supporting 'fallocate'."
   warn "Some addons may not work due to ZFS not supporting 'fallocate'."
 fi
 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... "
 echo -en "${GN} Starting LXC Container... "
 pct start $CTID
 pct start $CTID