cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #00685
Re: [Merge] lp:~xnox/cloud-init/refactor-dev-root into lp:cloud-init
On 26 May 2015 at 18:20, Scott Moser <smoser@xxxxxxxxxx> wrote:
> I dont think so.
> without something like lxcfs, the /proc/cmdline in the container is the host's /proc/cmdline.
> so that 'root=' (whether it be /dev/sda1 or LABEL=) is not destined for this container.
>
> with lxcfs, that might be different (hopefully it will be). But /proc/mountinfo is namepsaced, so its content is valid for the container.
>
fair enough. how do you want the container check?
... and not util.is_container():
>
> also, you can't use 'is' to compare strings as you did in line 9. example:
> $ python -c 'import sys; print(sys.argv[1] is "/dev/root")' /dev/root
> False
yeah, i fixed that but bzr had codehosting issue and didn't push. update pushed.
--
Regards,
Dimitri.
https://code.launchpad.net/~xnox/cloud-init/refactor-dev-root/+merge/260165
Your team cloud init development team is requested to review the proposed merge of lp:~xnox/cloud-init/refactor-dev-root into lp:cloud-init.
References