This tries to resolve the hostname, which does not work with an empty
/etc/hosts. Make sure that myhostname gets asked before dns.
# allow sudo with empty password
sed -i "s/nullok_secure/nullok/" /etc/pam.d/common-auth
# allow sudo with empty password
sed -i "s/nullok_secure/nullok/" /etc/pam.d/common-auth
+
+# unbreak slow host name resolution
+sed -i "/^hosts:/ s/files dns myhostname/files myhostname dns/" /etc/nsswitch.conf
'
toolbox run --container $RELEASE sh -exc '
'
toolbox run --container $RELEASE sh -exc '