37 lines
1.1 KiB
Cheetah
37 lines
1.1 KiB
Cheetah
|
# 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
|
||
|
|
||
|
ostreesetup --osname="fedora-atomic" --remote="fedora-atomic-27" --url="${matchbox_http_endpoint}/assets/fedora/27/repo" --ref=fedora/27/x86_64/atomic-host --nogpg
|
||
|
|
||
|
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
|
||
|
|
||
|
rm -f /etc/ostree/remotes.d/fedora-atomic-27.conf
|
||
|
ostree remote add fedora-atomic-27 https://kojipkgs.fedoraproject.org/atomic/27 --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-primary
|
||
|
|
||
|
# lock root user
|
||
|
passwd -l root
|
||
|
# remove temporary user
|
||
|
userdel -r none
|
||
|
%end
|