2018-04-01 02:36:26 +02:00
|
|
|
# required
|
|
|
|
lang en_US.UTF-8
|
|
|
|
keyboard us
|
|
|
|
timezone --utc Etc/UTC
|
|
|
|
|
|
|
|
# wipe disks
|
|
|
|
zerombr
|
|
|
|
clearpart --all --initlabel
|
|
|
|
|
|
|
|
# locked root and temporary user
|
|
|
|
rootpw --lock --iscrypted locked
|
|
|
|
user --name=none
|
|
|
|
|
|
|
|
# config
|
|
|
|
autopart --type=lvm --noswap
|
|
|
|
network --bootproto=dhcp --device=link --activate --onboot=on
|
|
|
|
bootloader --timeout=1 --append="ds=nocloud\;seedfrom=/var/cloud-init/"
|
|
|
|
services --enabled=cloud-init,cloud-init-local,cloud-config,cloud-final
|
|
|
|
|
2018-07-04 20:16:04 +02:00
|
|
|
ostreesetup --osname="fedora-atomic" --remote="fedora-atomic" --url="${atomic_assets_endpoint}/repo" --ref=fedora/28/x86_64/atomic-host --nogpg
|
2018-04-01 02:36:26 +02:00
|
|
|
|
|
|
|
reboot
|
|
|
|
|
|
|
|
%post --erroronfail
|
|
|
|
mkdir /var/cloud-init
|
|
|
|
curl --retry 10 "${matchbox_http_endpoint}/generic?mac=${mac}&os=installed" -o /var/cloud-init/user-data
|
|
|
|
echo "instance-id: iid-local01" > /var/cloud-init/meta-data
|
|
|
|
|
2018-04-16 02:04:04 +02:00
|
|
|
rm -f /etc/ostree/remotes.d/fedora-atomic.conf
|
2018-07-04 20:16:04 +02:00
|
|
|
ostree remote add fedora-atomic https://dl.fedoraproject.org/atomic/repo/ --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-primary
|
2018-04-01 02:36:26 +02:00
|
|
|
|
|
|
|
# lock root user
|
|
|
|
passwd -l root
|
|
|
|
# remove temporary user
|
|
|
|
userdel -r none
|
|
|
|
%end
|