From: Brett Parker <iDunno@sommitrealweird.co.uk>
Date: Sun, 22 May 2016 10:53:55 +0000 (+0100)
Subject: Add completion message
X-Git-Url: https://git.sommitrealweird.co.uk/lxc-debian-unprivileged.git/commitdiff_plain/6b2f4764180633ef9eed9a89f89086a877f50218

Add completion message
---

diff --git a/templates/lxc-debian-unprivileged b/templates/lxc-debian-unprivileged
index 42ece9e..d801b9d 100755
--- a/templates/lxc-debian-unprivileged
+++ b/templates/lxc-debian-unprivileged
@@ -264,4 +264,18 @@ enable_initscripts
 
 rm -r "${LXC_PATH}/bin"
 
+cat <<EOF
+You have successfully created a new debian container, ${LXC_NAME} running ${DEBIAN_RELEASE}.
+
+You should start the new container, and use:
+
+  lxc-attach -n ${LXC_NAME} -- su -
+
+To create a user account / set the root password.
+
+Note, by default, it's likely only to be the console that can login as root, so that'd be:
+
+  lxc-console -n ${LXC_NAME} -t 0
+EOF
+
 exit 0