Configure base-passwd & mawk before other rootfs packages

base-files relies on /etc/passwd existing but doesn't
declare base-passwd as a dependency, so it fails to
configure.
python2.7-minimal requires (m)awk.

Change-Id: I8c59a3801a77f4d762b76745f8b7c41f894041ab
diff --git a/rootfs.mk b/rootfs.mk
index 7a152ed..ffbe3b1 100644
--- a/rootfs.mk
+++ b/rootfs.mk
@@ -89,6 +89,12 @@
 	sudo cp /usr/bin/qemu-$(QEMU_ARCH)-static $(ROOTFS_DIR)/usr/bin
 
 	$(LOG) rootfs raw-build dpkg-configure
+	# Configure base-passwd first since a bunch of things relies on /etc/passwd existing without base-passwd as a dep.
+	# python2.7-minimal requires (m)awk
+	# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924401
+	# TODO(jtgans): Find out how debootstrap handles this.
+	sudo DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot $(ROOTFS_DIR) dpkg --configure \
+		gcc-8-base libgcc1 libc6 libdebconfclient0 base-passwd mawk
 	sudo DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot $(ROOTFS_DIR) dpkg --configure -a
 	$(LOG) rootfs raw-build dpkg-configure finished