From 9eed55b9e5be21a0c2837465c24f2b25ee926147 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Feb 26 2015 03:22:03 +0000 Subject: cloud-atomic-pxetolive: New file For the Atomic Host PXE-to-Live feature. --- diff --git a/fedora-cloud-atomic-pxetolive.ks b/fedora-cloud-atomic-pxetolive.ks new file mode 100644 index 0000000..48dd31c --- /dev/null +++ b/fedora-cloud-atomic-pxetolive.ks @@ -0,0 +1,30 @@ +# PXE-to-Live Atomic: PXE boot directly into a running Atomic Host +# https://fedoraproject.org/wiki/Changes/AtomicHost + +lang en_US.UTF-8 +keyboard us +timezone America/New_York +zerombr +clearpart --all --initlabel +rootpw --lock --iscrypted locked +user --name=none +bootloader --timeout=1 +network --bootproto=dhcp --device=link --activate +# We are only able to install atomic with separate /boot partition currently +part / --fstype="ext4" --size=6000 +part /boot --size=500 --fstype="ext4" +shutdown +services --disabled=docker-storage-setup,network + +ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=http://kojipkgs.fedoraproject.org/mash/atomic/22/ --ref=fedora-atomic/f22/x86_64/docker-host + +%post + +# Ensure the root password is locked, we use cloud-init +passwd -l root +userdel -r none + +# We copy content of separate /boot partition to root part when building live squashfs image, +# and we don't want systemd to try to mount it when pxe booting +cat /dev/null > /etc/fstab +%end