[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH RFC] LXC: add HOME environment variable



ping

> -----Original Message-----
> From: libvir-list-bounces redhat com [mailto:libvir-list-bounces redhat com]
> On Behalf Of Chen Hanxiao
> Sent: Friday, July 25, 2014 2:40 PM
> To: libvir-list redhat com
> Subject: [libvirt] [PATCH RFC] LXC: add HOME environment variable
> 
> We lacked of HOME environment variable,
> set 'HOME=/' as default.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao cn fujitsu com>
> ---
>  src/lxc/lxc_container.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
> index 1cf2c8f..9df9c04 100644
> --- a/src/lxc/lxc_container.c
> +++ b/src/lxc/lxc_container.c
> @@ -236,6 +236,7 @@ static virCommandPtr
> lxcContainerBuildInitCmd(virDomainDefPtr vmDef,
>      virCommandAddEnvString(cmd, "PATH=/bin:/sbin");
>      virCommandAddEnvString(cmd, "TERM=linux");
>      virCommandAddEnvString(cmd, "container=lxc-libvirt");
> +    virCommandAddEnvString(cmd, "HOME=/");
>      virCommandAddEnvPair(cmd, "container_uuid", uuidstr);
>      if (nttyPaths > 1)
>          virCommandAddEnvPair(cmd, "container_ttys",
> virBufferCurrentContent(&buf));
> --
> 1.9.0
> 
> --
> libvir-list mailing list
> libvir-list redhat com
> https://www.redhat.com/mailman/listinfo/libvir-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]