[lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container
TAMUKI Shoichi
tamuki at linet.gr.jp
Sat Oct 11 03:23:09 UTC 2014
Hello Serge,
From: TAMUKI Shoichi <tamuki at linet.gr.jp>
Subject: Re: [lxc-devel] [PATCH v2 3/3] Improve setting the default password in a new container
Date: Sat, 11 Oct 2014 11:57:01 +0900
> To solve that, instead of preparing template.chpasswd files, the
> template should inform the user name to be changed via something like
> $lxcpath/$container/chpasswd file. Then, after the template runs,
> lxc-create will read the file and do chpasswd for them.
>
> When using the download template to pull a pre-built rootfs image,
> lxc-create will also read the $lxcpath/$container/users file. So,
> when making a pre-built rootfs image, the script will read the
> $lxcpath/$container/users file which the template has informed, and
> store the user name into the meta.tar.xz. And then, the download
> template invoked by lxc-create should store the user name to be
> changed into $lxcpath/$container/chpasswd file.
Sorry to confuse you.
sed 's@\($lxcpath/$container/\)users@\1chpasswd at g'
Regards,
TAMUKI Shoichi
More information about the lxc-devel
mailing list