Commit bb8d8207 by Dwight Engen Committed by Serge Hallyn

allow all iX86 strings for lxc.arch

This change accepts all the same strings for lxc.arch that setarch(8) does. Note that we continue to parse plain x86 as PER_LINUX32 so as not to break existing lxc configuration files. Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent a0566914
...@@ -1723,9 +1723,15 @@ signed long lxc_config_parse_arch(const char *arch) ...@@ -1723,9 +1723,15 @@ signed long lxc_config_parse_arch(const char *arch)
struct per_name { struct per_name {
char *name; char *name;
unsigned long per; unsigned long per;
} pername[4] = { } pername[] = {
{ "x86", PER_LINUX32 }, { "x86", PER_LINUX32 },
{ "linux32", PER_LINUX32 },
{ "i386", PER_LINUX32 },
{ "i486", PER_LINUX32 },
{ "i586", PER_LINUX32 },
{ "i686", PER_LINUX32 }, { "i686", PER_LINUX32 },
{ "athlon", PER_LINUX32 },
{ "linux64", PER_LINUX },
{ "x86_64", PER_LINUX }, { "x86_64", PER_LINUX },
{ "amd64", PER_LINUX }, { "amd64", PER_LINUX },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment