Enable password-less sudo for openstack images.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
ab7c3d12db
commit
9af30cb24c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/release-vmimage/; revision=277184
@ -13,6 +13,10 @@ vm_extra_pre_umount() {
|
||||
echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf
|
||||
echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf
|
||||
|
||||
# Openstack wants sudo(8) usable by default without a password.
|
||||
echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> \
|
||||
${DESTDIR}/usr/local/etc/sudoers.d/cloud-init
|
||||
|
||||
rm -f ${DESTDIR}/etc/resolv.conf
|
||||
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user