mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-26 21:13:08 +00:00
Merge #109 fedora-atomic-vagrant: Sync with CentOS Atomic SIG
This commit is contained in:
commit
7e7eedf682
@ -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