1) Hook to set default passwords in the instance
2) Hook to set a timezone for the instance
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
--- /dev/null
+root:s3cr3t
--- /dev/null
+Europe/Brussels
--- /dev/null
+#!/bin/sh
+#
+# This is an example script that sets the root pasword to a given default
+
+cat $(dirname $0)/confdata/defaultpasswords | chroot $TARGET chpasswd
+
+
--- /dev/null
+#!/bin/sh
+#
+# This is an example script that sets the hostname and hosts file
+
+VMFQDN=$INSTANCE_NAME
+VMHOSTNAME=${VMFQDN%%.*}
+
+[ x$VMFQDN -eq x$VMHOSTNAME ] && VMFQDN=""
+
+echo "127.0.1.1 $VMFQDN $VMHOSTNAME" >> $TARGET/etc/host
+
--- /dev/null
+#!/bin/sh
+#
+# This is an example script that sets the timezone to a given default
+
+cp confdata/timezone $TARGET/etc/
+chroot $TARGET dpkg-reconfigure --frontend noninteractive tzdata
+
+