forked from srbala/fedora-kickstarts
fedora-atomic-vagrant: Sync with CentOS Atomic SIG
I'm trying to keep things in sync - this mostly ensures the root password is unlocked, and drops the `services` line that is useless because that's not how kickstart inheritance works.
This commit is contained in:
parent
92ca122497
commit
4a42f66223
@ -1,10 +1,8 @@
|
|||||||
# Like the Atomic cloud image, but tuned for vagrant. Enable
|
# Like the Atomic Host cloud image, but tuned for vagrant: enable the
|
||||||
# the vagrant user, disable cloud-init.
|
# vagrant user, disable cloud-init.
|
||||||
|
|
||||||
%include fedora-atomic.ks
|
%include fedora-atomic.ks
|
||||||
|
|
||||||
services --disabled=cloud-init,cloud-init-local,cloud-config,cloud-final
|
|
||||||
|
|
||||||
user --name=vagrant --password=vagrant
|
user --name=vagrant --password=vagrant
|
||||||
rootpw vagrant
|
rootpw vagrant
|
||||||
|
|
||||||
@ -14,13 +12,16 @@ rootpw vagrant
|
|||||||
# platforms (virtualbox and kvm)
|
# platforms (virtualbox and kvm)
|
||||||
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"
|
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"
|
||||||
|
|
||||||
|
|
||||||
%post --erroronfail
|
%post --erroronfail
|
||||||
|
|
||||||
# Work around cloud-init being both disabled and enabled; need
|
# Work around cloud-init being both disabled and enabled; need
|
||||||
# to refactor to a common base.
|
# to refactor to a common base.
|
||||||
systemctl mask cloud-init cloud-init-local cloud-config cloud-final
|
systemctl mask cloud-init cloud-init-local cloud-config cloud-final
|
||||||
|
|
||||||
|
# The inherited cloud %post locks the passwd, but we want it
|
||||||
|
# unlocked for vagrant, just like downstream.
|
||||||
|
passwd -u root
|
||||||
|
|
||||||
# Vagrant setup
|
# Vagrant setup
|
||||||
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers
|
sed -i 's,Defaults\\s*requiretty,Defaults !requiretty,' /etc/sudoers
|
||||||
echo 'vagrant ALL=NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
|
echo 'vagrant ALL=NOPASSWD: ALL' > /etc/sudoers.d/vagrant-nopasswd
|
||||||
|
Loading…
Reference in New Issue
Block a user