From 101c43dbd3e93f393ab05c466bcb8750b404a3d9 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 10 Mar 2017 13:50:41 +1100 Subject: [PATCH] Add notes on devuser when building images Add notes on using devuser to create a local user when building test images. Change-Id: I9893cd949dd20f5c9fc93bf35b28de2cbac8b4bb --- tools/build-image.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tools/build-image.sh b/tools/build-image.sh index 16796adcc3..3d7d871823 100755 --- a/tools/build-image.sh +++ b/tools/build-image.sh @@ -78,8 +78,23 @@ fi # export DIB_CUSTOM_PROJECTS_LIST_URL='file:///tmp/custom_projects.yaml' +## If you are building test images, or dealing with networking issues, +## you will want to have a local login with password available (as +## opposed to key-based ssh only). You can use the "devuser" element +## from dib to set this up. Don't forget to enable sudo and set the +## password. + +## defaults +## DIB_DEV_USER_USERNAME=devuser +## DIB_DEV_USER_AUTHORIZED_KEYS=$HOME/.ssh/id_rsa.pub + +# EXTRA_ELEMENTS+=devuser +# DIB_DEV_USER_PWDLESS_SUDO=1 +# DIB_DEV_USER_PASSWORD=devuser + +## The list of elements below should match those configured +## in nodepool/nodepool.yaml -# The list of elements here should match nodepool/nodepool.yaml disk-image-create -x --no-tmpfs -o $IMAGE_NAME \ $DISTRO \ vm \