From 44e845b3ce27c8243a0652ff3a0f07e59e8637e9 Mon Sep 17 00:00:00 2001 From: Mathias Gibbens Date: Tue, 30 Jan 2024 01:03:06 +0000 Subject: [PATCH] Add x32 to the list of recognized architectures LXC supports x32 containers, but currently creation of those containers is broken: lxc-create: x32-test: ../src/lxc/confile.c: set_config_personality: 1432 Invalid argument - Unsupported personality "x32" lxc-create: x32-test: ../src/lxc/parse.c: lxc_file_for_each_line_mmap: 129 Failed to parse config file "/var/lib/lxc/x32-test/config" at line "lxc.arch = x32" lxc-create: x32-test: ../src/lxc/tools/lxc_create.c: main: 317 Failed to create container x32-test Signed-off-by: Mathias Gibbens --- src/lxc/confile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 722f142fe..2c25e7712 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -3268,6 +3268,7 @@ int lxc_config_parse_arch(const char *arch, signed long *persona) { "mipsel", PER_LINUX32 }, { "ppc", PER_LINUX32 }, { "powerpc", PER_LINUX32 }, + { "x32", PER_LINUX32 }, { "x86", PER_LINUX32 }, { "aarch64", PER_LINUX }, { "amd64", PER_LINUX }, -- 2.47.2