Leave keyctl off by default as recommended

pull/2636/head
Rémi Bédard-Couture 1 year ago
parent b12a98e5a3
commit 3e90209df6
  1. 4
      misc/all-templates.sh
  2. 13
      misc/build.func
  3. 4
      turnkey/turnkey.sh

@ -77,8 +77,10 @@ TEMPLATE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "All Templat
NAME=$(echo "$TEMPLATE" | grep -oE '^[^-]+-[^-]+')
PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid)
#Recommended default for unprivileged containers is to leave keyctl off
#https://forum.proxmox.com/threads/how-does-keyctl-works-in-virtual-environments.116414/
PCT_OPTIONS="
-features keyctl=1,nesting=1
-features nesting=1
-hostname $NAME
-tags proxmox-helper-scripts
-onboot 0

@ -509,11 +509,14 @@ start() {
build_container() {
# if [ "$VERB" == "yes" ]; then set -x; fi
if [ "$CT_TYPE" == "1" ]; then
FEATURES="keyctl=1,nesting=1"
else
FEATURES="nesting=1"
fi
#Recommended default for unprivileged containers is to leave keyctl off
#https://forum.proxmox.com/threads/how-does-keyctl-works-in-virtual-environments.116414/
FEATURES="nesting=1"
# if [ "$CT_TYPE" == "1" ]; then
# FEATURES="keyctl=1,nesting=1"
# else
# FEATURES="nesting=1"
# fi
TEMP_DIR=$(mktemp -d)

@ -98,8 +98,10 @@ turnkey=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "TurnKey LXCs
# Setup script environment
PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid)
#Recommended default for unprivileged containers is to leave keyctl off
#https://forum.proxmox.com/threads/how-does-keyctl-works-in-virtual-environments.116414/
PCT_OPTIONS="
-features keyctl=1,nesting=1
-features nesting=1
-hostname turnkey-${turnkey}
-tags proxmox-helper-scripts
-onboot 1

Loading…
Cancel
Save