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. 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 -- 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. _______________________________________________ Mailing list: https://launchpad.net/~cloud-init-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~cloud-init-dev More help : https://help.launchpad.net/ListHelp

