Right, this is mentioned in the manpage.  You can force environment
to be cleared by passing --clear-env.  Actually setting HOME to what
a login shell would do would require lxc-attach to make assumptions
about the container.  However you can

lxc-attach -n trusty-vimprobable --clear-env -- su - root

to get su (inside the container) to do the things you want.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1513698

Title:
  $HOME variable set incorrectly inside container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1513698/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to