2019-02-21 19:17:10 +00:00
|
|
|
# RHEL Atomic PXE Live creation kickstart
|
2016-04-27 16:20:13 +00:00
|
|
|
# Suitable for use with livemedia-creator --no-virt
|
|
|
|
|
2014-07-30 15:59:27 +00:00
|
|
|
# Settings for unattended installation:
|
|
|
|
lang en_US.UTF-8
|
|
|
|
keyboard us
|
|
|
|
timezone America/New_York
|
|
|
|
clearpart --all --initlabel
|
|
|
|
rootpw --plaintext atomic
|
|
|
|
|
|
|
|
part / --fstype="ext4" --size=6000
|
|
|
|
|
|
|
|
shutdown
|
|
|
|
|
2018-11-27 01:04:25 +00:00
|
|
|
# Replace OSTREE-REPO with the url to an ostree repo
|
|
|
|
# Replace OSTREE-REFERENCE with an ostree reference to pull
|
2019-02-21 19:17:10 +00:00
|
|
|
ostreesetup --nogpg --osname=rhel-atomic-host --remote=rhel-atomic-host --url=OSTREE-REPO --ref=OSTREE-REFERENCE
|
2014-07-30 15:59:27 +00:00
|
|
|
|
2015-01-09 14:03:21 +00:00
|
|
|
services --disabled=cloud-init,cloud-init-local,cloud-final,cloud-config,docker-storage-setup
|
|
|
|
|
2014-07-30 15:59:27 +00:00
|
|
|
# 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
|
|
|
|
%post
|
|
|
|
cat /dev/null > /etc/fstab
|
|
|
|
%end
|
2016-04-27 16:20:13 +00:00
|
|
|
|
|
|
|
%post --erroronfail
|
2019-02-21 19:17:10 +00:00
|
|
|
rm -f /etc/ostree/remotes.d/rhel-atomic-host.conf
|
2018-11-27 01:04:25 +00:00
|
|
|
|
|
|
|
# Replace OSTREE-REPO with the url to an ostree repo
|
2019-02-21 19:17:10 +00:00
|
|
|
ostree remote add --set=gpg-verify=false rhel-atomic-host 'OSTREE-REPO'
|
2016-04-27 16:20:13 +00:00
|
|
|
%end
|