]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: rename lxc.utsname to lxc.uts.name 1658/head
author0x0916 <w@laoqinren.net>
Wed, 28 Jun 2017 10:58:16 +0000 (18:58 +0800)
committer0x0916 <w@laoqinren.net>
Fri, 30 Jun 2017 01:43:53 +0000 (09:43 +0800)
the legacy keys will be kept around until LXC 3.0 and then will be
removed.

Signed-off-by: 0x0916 <w@laoqinren.net>
39 files changed:
doc/examples/lxc-complex.conf.in
doc/examples/lxc-empty-netns.conf.in
doc/examples/lxc-macvlan.conf.in
doc/examples/lxc-no-netns.conf.in
doc/examples/lxc-phys.conf.in
doc/examples/lxc-veth.conf.in
doc/examples/lxc-vlan.conf.in
doc/ja/lxc.container.conf.sgml.in
doc/ko/lxc.container.conf.sgml.in
doc/lxc.container.conf.sgml.in
src/lua-lxc/test/apitest.lua
src/lxc/confile.c
src/lxc/lxccontainer.c
src/python-lxc/examples/api_test.py
src/tests/parse_config_file.c
src/tests/startone.c
templates/lxc-alpine.in
templates/lxc-altlinux.in
templates/lxc-archlinux.in
templates/lxc-busybox.in
templates/lxc-centos.in
templates/lxc-cirros.in
templates/lxc-debian.in
templates/lxc-download.in
templates/lxc-fedora-legacy.in
templates/lxc-fedora.in
templates/lxc-gentoo.in
templates/lxc-openmandriva.in
templates/lxc-opensuse.in
templates/lxc-oracle.in
templates/lxc-plamo.in
templates/lxc-pld.in
templates/lxc-sabayon.in
templates/lxc-slackware.in
templates/lxc-sparclinux.in
templates/lxc-sshd.in
templates/lxc-ubuntu-cloud.in
templates/lxc-ubuntu.in
templates/lxc-voidlinux.in

index 70a471b5e960e4e2c68e15b8fb96c6742c779d31..3ae5112d9eb02ad0971c1aabeec18389e55901c2 100644 (file)
@@ -1,6 +1,6 @@
 # Container with network a complex network mixing macvlan, veth and
 # physical network devices
-lxc.utsname = complex
+lxc.uts.name = complex
 lxc.net.0.type = veth
 lxc.net.0.flags = up
 lxc.net.0.link = br0
index e1f89b53bf07a1e9db46a7c6c2e358ffac7c4d68..f28dff5d595e1b3f0856ead050dd4470b12eb5fc 100644 (file)
@@ -1,4 +1,4 @@
 # Container with new network withtout network devices
-lxc.utsname = omega
+lxc.uts.name = omega
 lxc.net.0.type = empty
 lxc.net.0.flags = up
index 2ad078f60438df0e20976c896894c2053e0e5c98..8fc2be9445eb8d0612e9764edbde3d1178a6369d 100644 (file)
@@ -1,5 +1,5 @@
 # Container with network virtualized using the macvlan device driver
-lxc.utsname = alpha
+lxc.uts.name = alpha
 lxc.net.0.type = macvlan
 lxc.net.0.flags = up
 lxc.net.0.link = eth0
index ff41c844454fa2f2ff9e16a228f7d042d6dd0b1b..3ba1a396c81d603fed604ad9267db98f33838942 100644 (file)
@@ -1,3 +1,3 @@
 # Container with non-virtualized network
 lxc.net.0.type = none
-lxc.utsname = delta
+lxc.uts.name = delta
index 5bd4cefd66567138e5dc2e82244c0e98a5783421..a92ae986bdb0099102db078390713efca3298df7 100644 (file)
@@ -1,6 +1,6 @@
 # Container with network virtualized using a physical network device with name
 # 'eth0'
-lxc.utsname = gamma
+lxc.uts.name = gamma
 lxc.net.0.type = phys
 lxc.net.0.flags = up
 lxc.net.0.link = eth0
index e6ccb4f8a39e7e967b970a97983d7c84c4e6d358..83def3a9e12aedffe85444565cf90a12b7cd577e 100644 (file)
@@ -1,6 +1,6 @@
 # Container with network virtualized using a pre-configured bridge named br0 and
 # veth pair virtual network devices
-lxc.utsname = beta
+lxc.uts.name = beta
 lxc.net.0.type = veth
 lxc.net.0.flags = up
 lxc.net.0.link = br0
index b660d2b4a45e403ecc55a32d3adc0aca2162990b..057920c2e54444b0a99ff37e777d5c1cd1fff657 100644 (file)
@@ -1,5 +1,5 @@
 # Container with network virtualized using the vlan device driver
-lxc.utsname = alpha
+lxc.uts.name = alpha
 lxc.net.0.type = vlan
 lxc.net.0.vlan.id = 1234
 lxc.net.0.flags = up
index e941fcec7fa80266397bd43e1e02d235bf025488..f03cc24dac520b1c883d2f44d195a37f37aa970b 100644 (file)
@@ -229,7 +229,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
       <variablelist>
         <varlistentry>
           <term>
-            <option>lxc.utsname</option>
+            <option>lxc.uts.name</option>
           </term>
           <listitem>
             <para>
@@ -2667,7 +2667,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
         仮想ネットワークデバイスは、コンテナ内では eth0 とリネームされます。
       </para>
       <programlisting>
-        lxc.utsname = myhostname
+        lxc.uts.name = myhostname
         lxc.net.0.type = veth
         lxc.net.0.flags = up
         lxc.net.0.link = br0
@@ -2720,7 +2720,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
         この例は、control group を使って、複雑なネットワークスタックを作成し、新しいホスト名を指定し、いくつかの場所をマウントし、ルートファイルシステムを変更するような複雑な設定を示します。
       </para>
       <programlisting>
-        lxc.utsname = complex
+        lxc.uts.name = complex
         lxc.net.0.type = veth
         lxc.net.0.flags = up
         lxc.net.0.link = br0
index 738748b521cbcb9e6811e825ea22487ed720fa49..40e1513c323fd44d6fc31f3781eb5c25f2e73048 100644 (file)
@@ -187,7 +187,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
       <variablelist>
        <varlistentry>
          <term>
-           <option>lxc.utsname</option>
+           <option>lxc.uts.name</option>
          </term>
          <listitem>
            <para>
@@ -2563,7 +2563,7 @@ mknod errno 0
         이 설정은 컨테이너가 한 쪽은 (이전에 시스템에 이미 생성된) br0 브리지에 연결되어 있는 veth 장치 쌍을 사용하도록 세팅한다. 가상 네트워크 장치는 컨테이너 내에서 eth0라는 이름을 갖는다.
       </para>
       <programlisting>
-       lxc.utsname = myhostname
+       lxc.uts.name = myhostname
        lxc.net.0.type = veth
        lxc.net.0.flags = up
        lxc.net.0.link = br0
@@ -2613,7 +2613,7 @@ mknod errno 0
         아래의 예제는 복잡한 네트워크 스택, 컨트롤 그룹 사용, 호스트 이름 설정, 몇몇 장소 마운트, 루트 파일시스템 변경 등의 복잡한 설정을 보여준다.
       </para>
       <programlisting>
-       lxc.utsname = complex
+       lxc.uts.name = complex
        lxc.net.0.type = veth
        lxc.net.0.flags = up
        lxc.net.0.link = br0
index 3b639dd7f5b69d5b206b07a83960f42c6953d37c..6c832c8b2317fd3f80b7b8836168a0a740dce75a 100644 (file)
@@ -172,7 +172,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
       <variablelist>
         <varlistentry>
           <term>
-            <option>lxc.utsname</option>
+            <option>lxc.uts.name</option>
           </term>
           <listitem>
             <para>
@@ -1932,7 +1932,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
         virtual network device visible in the container is renamed to
         eth0.</para>
       <programlisting>
-        lxc.utsname = myhostname
+        lxc.uts.name = myhostname
         lxc.net.0.type = veth
         lxc.net.0.flags = up
         lxc.net.0.link = br0
@@ -1975,7 +1975,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
       network stack, using the control groups, setting a new hostname,
       mounting some locations and a changing root file system.</para>
       <programlisting>
-        lxc.utsname = complex
+        lxc.uts.name = complex
         lxc.net.0.type = veth
         lxc.net.0.flags = up
         lxc.net.0.link = br0
index c4fa4c935a1cd0722a7555bc225a079f3ed65b23..99cded75b0344e5947044b8417bf9d068cd937d2 100755 (executable)
@@ -233,11 +233,11 @@ function test_config_items()
     log(0, "Test set/clear configuration items...")
 
     -- test setting a 'single type' item
-    assert(container:get_config_item("lxc.utsname") == optarg["n"])
-    container:set_config_item("lxc.utsname", "foobar")
-    assert(container:get_config_item("lxc.utsname") == "foobar")
-    container:set_config_item("lxc.utsname", optarg["n"])
-    assert(container:get_config_item("lxc.utsname") == optarg["n"])
+    assert(container:get_config_item("lxc.uts.name") == optarg["n"])
+    container:set_config_item("lxc.uts.name", "foobar")
+    assert(container:get_config_item("lxc.uts.name") == "foobar")
+    container:set_config_item("lxc.uts.name", optarg["n"])
+    assert(container:get_config_item("lxc.uts.name") == optarg["n"])
 
     -- test clearing/setting a 'list type' item
     container:clear_config_item("lxc.cap.drop")
index 23446939eac9c1e37532eb0f525b992d47195e20..3c0b3b1d082f9a5fe22f3e29cd7cc73635f951ad 100644 (file)
@@ -92,7 +92,7 @@ lxc_config_define(rootfs_mount);
 lxc_config_define(rootfs_options);
 lxc_config_define(rootfs_backend);
 lxc_config_define(rootfs);
-lxc_config_define(utsname);
+lxc_config_define(uts_name);
 lxc_config_define(hooks);
 lxc_config_define(net_type);
 lxc_config_define(net_flags);
@@ -164,7 +164,13 @@ static struct lxc_config_t config[] = {
        { "lxc.rootfs.options",            set_config_rootfs_options,              get_config_rootfs_options,              clr_config_rootfs_options,            },
        { "lxc.rootfs.backend",            set_config_rootfs_backend,              get_config_rootfs_backend,              clr_config_rootfs_backend,            },
        { "lxc.rootfs",                    set_config_rootfs,                      get_config_rootfs,                      clr_config_rootfs,                    },
-       { "lxc.utsname",                   set_config_utsname,                     get_config_utsname,                     clr_config_utsname,                   },
+
+       /* REMOVE IN LXC 3.0
+          legacy utsname key
+        */
+       { "lxc.utsname",                   set_config_uts_name,                    get_config_uts_name,                    clr_config_uts_name,                   },
+
+       { "lxc.uts.name",                  set_config_uts_name,                    get_config_uts_name,                    clr_config_uts_name,                   },
        { "lxc.hook.pre-start",            set_config_hooks,                       get_config_hooks,                       clr_config_hooks,                     },
        { "lxc.hook.pre-mount",            set_config_hooks,                       get_config_hooks,                       clr_config_hooks,                     },
        { "lxc.hook.mount",                set_config_hooks,                       get_config_hooks,                       clr_config_hooks,                     },
@@ -2059,13 +2065,13 @@ static int set_config_rootfs_backend(const char *key, const char *value,
        return set_config_string_item(&lxc_conf->rootfs.bdev_type, value);
 }
 
-static int set_config_utsname(const char *key, const char *value,
+static int set_config_uts_name(const char *key, const char *value,
                              struct lxc_conf *lxc_conf, void *data)
 {
        struct utsname *utsname;
 
        if (lxc_config_value_empty(value)) {
-               clr_config_utsname(key, lxc_conf, NULL);
+               clr_config_uts_name(key, lxc_conf, NULL);
                return 0;
        }
 
@@ -3050,7 +3056,7 @@ static int get_config_rootfs_backend(const char *key, char *retv, int inlen,
        return lxc_get_conf_str(retv, inlen, c->rootfs.bdev_type);
 }
 
-static int get_config_utsname(const char *key, char *retv, int inlen,
+static int get_config_uts_name(const char *key, char *retv, int inlen,
                              struct lxc_conf *c, void *data)
 {
        return lxc_get_conf_str(
@@ -3472,7 +3478,7 @@ static inline int clr_config_rootfs_backend(const char *key, struct lxc_conf *c,
        return 0;
 }
 
-static inline int clr_config_utsname(const char *key, struct lxc_conf *c,
+static inline int clr_config_uts_name(const char *key, struct lxc_conf *c,
                                     void *data)
 {
        free(c->utsname);
index 5301d092ca0d0c94ab1af803f8dc027bd7e899b1..ae0e708d2058abe5796b8c1358d324e043dcf706 100644 (file)
@@ -3211,8 +3211,9 @@ static struct lxc_container *do_lxcapi_clone(struct lxc_container *c, const char
        // update utsname
        if (!(flags & LXC_CLONE_KEEPNAME)) {
                clear_unexp_config_line(c2->lxc_conf, "lxc.utsname", false);
+               clear_unexp_config_line(c2->lxc_conf, "lxc.uts.name", false);
 
-               if (!set_config_item_locked(c2, "lxc.utsname", newname)) {
+               if (!set_config_item_locked(c2, "lxc.uts.name", newname)) {
                        ERROR("Error setting new hostname");
                        goto out;
                }
index fac2bb06a0ce5603da9513b39b34cc9fa22f6822..1934a238c5c00ab8de4f68cef35a3ff2b37d09e4 100755 (executable)
@@ -71,7 +71,7 @@ container.create("download", 0,
 
 assert(container.defined)
 assert(container.name == CONTAINER_NAME
-       == container.get_config_item("lxc.utsname"))
+       == container.get_config_item("lxc.uts.name"))
 assert(container.name in lxc.list_containers())
 
 ## Test the config
@@ -131,8 +131,8 @@ assert(len(ips) > 0)
 
 ## Test running config
 assert(container.name == CONTAINER_NAME
-       == container.get_config_item("lxc.utsname")
-       == container.get_running_config_item("lxc.utsname"))
+       == container.get_config_item("lxc.uts.name")
+       == container.get_running_config_item("lxc.uts.name"))
 
 ## Testing cgroups a bit
 print("Testing cgroup API")
index 74334e100db42a92e49be3672be245ed70ed0f64..e20272fe7ac6efd8bad7b958e62fd9803f333d86 100644 (file)
@@ -531,13 +531,22 @@ int main(int argc, char *argv[])
                goto non_test_error;
        }
 
-       /* lxc.utsname */
+       /* REMOVE IN LXC 3.0
+          legacy lxc.utsname key
+        */
        if (set_get_compare_clear_save_load(c, "lxc.utsname", "the-shire", tmpf,
                                            true) < 0) {
                lxc_error("%s\n", "lxc.utsname");
                goto non_test_error;
        }
 
+       /* lxc.uts.name */
+       if (set_get_compare_clear_save_load(c, "lxc.uts.name", "the-shire", tmpf,
+                                           true) < 0) {
+               lxc_error("%s\n", "lxc.uts.name");
+               goto non_test_error;
+       }
+
        /* lxc.hook.pre-start */
        if (set_get_compare_clear_save_load(
                c, "lxc.hook.pre-start", "/some/pre-start", tmpf, false) < 0) {
index 6b7344f6685afa4ce64761d9ed7584fcb34bdb60..f875197032d13631254410e273c32e80d0dede2c 100644 (file)
@@ -154,8 +154,8 @@ int main(int argc, char *argv[])
                goto out;
        }
 
-       if (!c->set_config_item(c, "lxc.utsname", "bobo")) {
-               fprintf(stderr, "%d: failed setting lxc.utsname\n", __LINE__);
+       if (!c->set_config_item(c, "lxc.uts.name", "bobo")) {
+               fprintf(stderr, "%d: failed setting lxc.uts.name\n", __LINE__);
                goto out;
        }
 
index 9a9200f7f0b0fc156fcde5c110dc8a0b244ea772..2d6a1b9ff3bfe77315af9fdc753f6f62019dc273 100644 (file)
@@ -388,7 +388,7 @@ configure_container() {
                lxc.arch = $arch
 
                # Set hostname.
-               lxc.utsname = $hostname
+               lxc.uts.name = $hostname
 
                # If something doesn't work, try to comment this out.
                # Dropping sys_admin disables container root from doing a lot of things
index b58bbc9da5c816f2e9d076dbb7ec0256606c84b4..082330c5830f472b756a5d5ccd066c9eb4aa2add 100644 (file)
@@ -267,7 +267,7 @@ copy_configuration()
     mkdir -p $config_path
     grep -q "^lxc.rootfs" $config_path/config 2>/dev/null || echo "lxc.rootfs = $rootfs_path" >> $config_path/config
     cat <<EOF >> $config_path/config
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.tty = 4
 lxc.pts = 1024
 lxc.cap.drop = sys_module mac_admin mac_override sys_time
index 581ebb37d42248f10de28febc2cf14d7a3358a52..46c422083e92fb8ac7d034255c69f6c85933bc8a 100644 (file)
@@ -148,7 +148,7 @@ EOF
 copy_configuration() {
     mkdir -p "${config_path}"
     local config="${config_path}/config"
-    echo "lxc.utsname = ${name}" >> "${config}"
+    echo "lxc.uts.name = ${name}" >> "${config}"
     grep -q "^lxc.arch" "${config}" 2>/dev/null \
         || echo "lxc.arch = ${arch}" >> "${config}"
     grep -q "^lxc.rootfs" "${config}" 2>/dev/null \
index 7e11ac3e5a6ec0a500765eff92cdc32b952632dd..ac0fcd43d28fe21923fba4d1fac22cd438298074 100644 (file)
@@ -343,7 +343,7 @@ grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >>
 cat <<EOF >> $path/config
 lxc.signal.halt = SIGUSR1
 lxc.rebootsignal = SIGTERM
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.tty = 1
 lxc.pts = 1
 lxc.cap.drop = sys_module mac_admin mac_override sys_time
index a211636dc06e92384d3ecde9c5762241647ca024..23bc739fba3e7338e968f3a16c55b9cd9445dff3 100644 (file)
@@ -641,7 +641,7 @@ lxc.include = @LXCTEMPLATECONFIG@/centos.common.conf
     # Append things which require expansion here...
     cat <<EOF >> $config_path/config
 lxc.arch = $arch
-lxc.utsname = $utsname
+lxc.uts.name = $utsname
 
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
index 1bfedda50e6634f4f88590b1bebe5b65aa596c07..b9c94d91d8496778f052e60b4d8a39862d8df784 100644 (file)
@@ -123,7 +123,7 @@ lxc.rootfs = $rootfs
 lxc.tty = 4
 lxc.pts = 1024
 
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.arch = $arch
 lxc.cap.drop = sys_module mac_admin mac_override sys_time
 
index 8464ef9fde288a7c5a2f12002aefb3d37a601af4..bd9f9f9d67d094d3312e55877c10b9bf1dba0016 100644 (file)
@@ -515,7 +515,7 @@ copy_configuration()
 
     cat <<EOF >> $path/config
 lxc.tty = $num_tty
-lxc.utsname = $hostname
+lxc.uts.name = $hostname
 lxc.arch = $arch
 lxc.pts=1023
 EOF
index 49a9c826e7ca955d451383d1d709522db865daa2..fb891b0398b8e2a99b24edb6e4953773927b9b81 100644 (file)
@@ -547,7 +547,7 @@ fi
 if [ -e "$fstab" ]; then
     echo "lxc.mount = ${LXC_PATH}/fstab" >> ${LXC_PATH}/config
 fi
-echo "lxc.utsname = ${LXC_NAME}" >> ${LXC_PATH}/config
+echo "lxc.uts.name = ${LXC_NAME}" >> ${LXC_PATH}/config
 
 ## Re-add the previously removed network config
 if [ -e "${LXC_PATH}/config-network" ]; then
index 2c5abd13e3c635766f543020a698d374bea2a51b..815f74c5313b7f268937698ede4300525131a9cf 100644 (file)
@@ -1127,7 +1127,7 @@ lxc.include = @LXCTEMPLATECONFIG@/fedora.common.conf
     # Append things which require expansion here...
     cat <<EOF >> $config_path/config
 lxc.arch = $arch
-lxc.utsname = $utsname
+lxc.uts.name = $utsname
 
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
index 0cd790de94e5d06cc38529edaf60d6cb3c2259e5..46a9b918c99498b5df7367b84defcc45a1f730fc 100644 (file)
@@ -486,7 +486,7 @@ lxc.include = ${lxc_template_config}/fedora.common.conf
     cat <<EOF >> "${path}/config"
 # Container specific configuration
 lxc.arch = ${basearch}
-lxc.utsname = ${utsname}
+lxc.uts.name = ${utsname}
 
 # When using LXC with apparmor, uncomment the next line to run unconfined:
 #lxc.aa_profile = unconfined
index e918d9902927992f8d6058fef8fcc3620cfe927f..8f68f1757576d4573bc7b2d927b259b2b0840429 100644 (file)
@@ -705,7 +705,7 @@ container_conf()
 ${conf_arch_line}
 
 # set the hostname
-lxc.utsname = ${name}
+lxc.uts.name = ${name}
 lxc.tty = ${tty}
 
 ${conf_rootfs_line}
index 6a4df8ff47068480b3943aa69db3e2f316a65d2c..fbc7c786659fe93195803b289081fcb696fa2564 100644 (file)
@@ -228,7 +228,7 @@ copy_configuration()
     mkdir -p $config_path
     grep -q "^lxc.rootfs" $config_path/config 2>/dev/null || echo "lxc.rootfs = $rootfs_path" >> $config_path/config
     cat <<EOF >> $config_path/config
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.tty = 4
 lxc.pts = 1024
 lxc.cap.drop = sys_module mac_admin mac_override sys_time
index 6ba5a83d11a301620830258a51226dde8faa3074..380b3c0282a0cf1e32898ae2649988a7eb059059 100644 (file)
@@ -350,7 +350,7 @@ lxc.include = @LXCTEMPLATECONFIG@/opensuse.common.conf
     # Append things which require expansion here...
     cat <<EOF >> $path/config
 lxc.arch = $arch
-lxc.utsname = $name
+lxc.uts.name = $name
 
 lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
 
index f06b70ec37324987eabbafbbb017d21e424b7022..eeb7e74489a1a3a94380b84d3376e3f87b5da39b 100644 (file)
@@ -482,7 +482,7 @@ container_config_create()
     cat <<EOF >> $cfg_dir/config || die "unable to create $cfg_dir/config"
 # Container configuration for Oracle Linux $container_release_major.$container_release_minor
 lxc.arch = $arch
-lxc.utsname = $name
+lxc.uts.name = $name
 EOF
     grep -q "^lxc.rootfs" $cfg_dir/config 2>/dev/null || echo "lxc.rootfs = $container_rootfs" >> $cfg_dir/config
 
index c96e23e11a715fd396ce6c55859805a8f29e1d9c..9c17f77be8320b633bea755a56f362045dc9e7af 100644 (file)
@@ -233,7 +233,7 @@ configure_plamo() {
 copy_configuration() {
   ret=0
   cat <<- EOF >> $path/config || let ret++
-       lxc.utsname = $name
+       lxc.uts.name = $name
        lxc.arch = $arch
        EOF
   if [ -f "@LXCTEMPLATECONFIG@/plamo.common.conf" ] ; then
index a8e534646fd1795828bdb3cd0b21185ff37a0191..60c75ca0069a4a7b8e95be2343fa0a53689a54a1 100644 (file)
@@ -238,7 +238,7 @@ copy_configuration()
        cat <<EOF >> $config_path/config
 # Most of below settings should be taken as defaults  from
 # lxc.include = /usr/share/lxc/config/common.conf
-lxc.utsname = $utsname
+lxc.uts.name = $utsname
 lxc.tty = 4
 lxc.pts = 1024
 # Consider if below line is right for systemd container
index 7a2f09e67e9abe5b5160e376f5a376def6c7ffc1..76e877d472649b0fa0873659b689bac500448080 100644 (file)
@@ -324,7 +324,7 @@ lxc.cgroup.devices.allow = c 10:229 rwm
 lxc.arch = $arch
 
 # Set hostname.
-lxc.utsname = $hostname
+lxc.uts.name = $hostname
 
 # Include common configuration.
 lxc.include = $LXC_TEMPLATE_CONFIG/sabayon.common.conf
index 216c7a72432703ff47da5c360c1e8d0ec2401a03..f36e150a7a777dc3fa521f5eef473ae88182764a 100644 (file)
@@ -638,7 +638,7 @@ name=$3
 
 cat <<EOF >> $path/config
 
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.arch = $arch
 
 lxc.mount = $rootfs/etc/fstab
index 1757706f10dd17e3308b28597b3977f9efa5ab5b..087c545529d72c7acb662e3267636f89d5441763 100644 (file)
@@ -316,7 +316,7 @@ container_config_create()
     cat <<EOF >> $cfg_dir/config || die "unable to create $cfg_dir/config"
 # Container configuration for Linux for SPARC $container_release_major.$container_release_minor
 lxc.arch = $arch
-lxc.utsname = $name
+lxc.uts.name = $name
 EOF
     grep -q "^lxc.rootfs" $cfg_dir/config 2>/dev/null || echo "lxc.rootfs = $container_rootfs" >> $cfg_dir/config
 
index 0093efee9360956b62296dcef9fc317f878fcc69..08b303de9b74ee09d02522b3281c0cffdf6997a9 100644 (file)
@@ -129,7 +129,7 @@ copy_configuration()
 
     grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
 cat <<EOF >> $path/config
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.pts = 1024
 lxc.cap.drop = sys_module mac_admin mac_override sys_time
 
index 80a06c8171a0817a829a6ebc4d4cac8aded67623..9717fa874567cbe87b16afd18e4555b550b54a71 100644 (file)
@@ -91,7 +91,7 @@ copy_configuration()
     [ -e "$path/config-auto" ] && cat $path/config-auto >> $path/config && rm $path/config-auto
     grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
     cat <<EOF >> $path/config
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.arch = $arch
 EOF
 
index a897150a25b71eac94c67ac313b9f978aa3f44f8..81d6b6ca2fce971af9f270f2f1899c0e27cdea0e 100644 (file)
@@ -531,7 +531,7 @@ copy_configuration()
     [ -e "$path/config-auto" ] && cat $path/config-auto >> $path/config && rm $path/config-auto
     grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
     cat <<EOF >> $path/config
-lxc.utsname = $name
+lxc.uts.name = $name
 lxc.arch = $arch
 EOF
 
index 380d8a11364d0454a67ddf3d3c598772d15f3fe7..6a4e919231a01d29225217b0f2bd3f9d14bccf7e 100644 (file)
@@ -68,7 +68,7 @@ declare -a additional_packages
 copy_configuration() {
     mkdir -p "${config_path}"
     local config="${config_path}/config"
-    echo "lxc.utsname = ${name}" >> "${config}"
+    echo "lxc.uts.name = ${name}" >> "${config}"
     grep -q "^lxc.rootfs" "${config}" 2>/dev/null \
         || echo "lxc.rootfs = ${rootfs_path}" >> "${config}"