1
Description: lxc-ubuntu: fix printing of default user
2
If a user is bound into the container, don't claim the default user is
4
Author: Serge Hallyn <serge.hallyn@ubuntu.com>
6
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1052315
8
Index: lxc/templates/lxc-ubuntu.in
9
===================================================================
10
--- lxc.orig/templates/lxc-ubuntu.in 2012-09-19 11:54:39.942250000 -0500
11
+++ lxc/templates/lxc-ubuntu.in 2012-09-19 11:56:48.377032378 -0500
16
-echo "# The default user is 'ubuntu' with password 'ubuntu'!"
17
-echo "# Use the 'sudo' command to run tasks as root in the container."
18
+if [ -n "$bindhome" ]; then
19
+ echo "# Log in as user $bindhome"
21
+ echo "# The default user is 'ubuntu' with password 'ubuntu'!"
22
+ echo "# Use the 'sudo' command to run tasks as root in the container."