atomic-vagrant: Mask cloud-init instead of using rm on /etc

Now that cloud-init is enabled in the systemd unit, that change
goes in /usr/lib...which we can't easily change.  There are
two potentially sane solutions:
 - Refactor the kickstarts here
 - Some support for systemd presets in kickstart files would
   allow us to have a later override here
This commit is contained in:
Colin Walters 2015-03-04 11:58:01 -05:00
parent 7c328c9965
commit 264303aac1

View File

@ -11,7 +11,7 @@ user --name=vagrant --password=vagrant
# Work around cloud-init being both disabled and enabled; need
# to refactor to a common base.
rm /etc/systemd/system/multi-user.target.wants/cloud-init* /etc/systemd/system/multi-user.target.wants/cloud-config*
systemctl mask cloud-init cloud-init-local cloud-config cloud-final
# Vagrant setup
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers