[pve-devel] [PATCH container] config: schema: update description for 'unprivileged' option

Fiona Ebner f.ebner at proxmox.com
Fri Aug 1 12:11:07 CEST 2025


Since commit 103068a ("api: create: default to unprivileged
containers"), creation defaults to unprivileged. Use the opportunity
to also describe the behavior when restoring.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 src/PVE/LXC/Config.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 5d7edc4..e4d0365 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -648,8 +648,9 @@ my $confdesc = {
     unprivileged => {
         optional => 1,
         type => 'boolean',
-        description =>
-            "Makes the container run as unprivileged user. (Should not be modified manually.)",
+        description => "Makes the container run as unprivileged user. For creation, the default is"
+            ." 1. For restore, the default is the value from the backup. (Should not be modified"
+            ." manually.)",
         default => 0,
     },
     features => {
-- 
2.47.2





More information about the pve-devel mailing list