From 8cc5fb43fa78a40b8425c9ea8541bea837e5d815 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Thu, 21 Dec 2017 09:49:49 +0100 Subject: [PATCH 1/2] Don't ask for password and GECOS while creating vagrant user --- live-build/ubuntu-cpc/hooks/042-vagrant.binary | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/live-build/ubuntu-cpc/hooks/042-vagrant.binary b/live-build/ubuntu-cpc/hooks/042-vagrant.binary index 8b734e92..0894157e 100755 --- a/live-build/ubuntu-cpc/hooks/042-vagrant.binary +++ b/live-build/ubuntu-cpc/hooks/042-vagrant.binary @@ -63,7 +63,9 @@ chroot ${mount_d} apt-get clean # Vagrant users expect a "vagrant" user with a "vagrant" username. # See https://www.vagrantup.com/docs/boxes/base.html # Note: We decided NOT to allow root login with a default password. -chroot ${mount_d} adduser vagrant +# --disabled-password and --gecos need to be passed to avoid adduser +# asking questions when running in an interactive shell +chroot ${mount_d} adduser vagrant --disabled-password --gecos "" echo "vagrant:vagrant" | chroot ${mount_d} chpasswd # The vagrant user should have passwordless sudo. From 51bff098b7e1e09be709368e2a842ccae485d752 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Thu, 21 Dec 2017 09:49:53 +0100 Subject: [PATCH 2/2] Update changelog --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 1ebb589c..daf80bd7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.408.27) xenial; urgency=medium + + * Don't ask for password and GECOS while creating vagrant user + (LP: #1569237) + + -- Balint Reczey Thu, 21 Dec 2017 09:20:32 +0100 + livecd-rootfs (2.408.26) xenial; urgency=medium * Added a "vagrant" user to the vagrant image in addition to the "ubuntu"