Created
August 31, 2016 00:47
-
-
Save jberkus/cfcdea64361ca7b75dcf5517f2a6a748 to your computer and use it in GitHub Desktop.
Sample Kickstart for Atomic on Minnowboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
# install Fedora Atomic and then reboot automatically | |
install | |
reboot | |
# set language, keyboard and timezone | |
lang en_US.UTF-8 | |
keyboard us | |
timezone --utc America/Los_Angeles | |
#erase all existing boot records and partitions | |
zerombr | |
clearpart --all --initlabel | |
# create a boot record and a boot partition | |
bootloader --location=mbr --boot-drive=sda | |
reqpart --add-boot | |
# create an LVM partition and volume group | |
part pv.01 --grow --ondisk=sda | |
volgroup atomicos pv.01 | |
# create root directory 16GB in size. | |
logvol / --size=16000 --fstype="xfs" --name=root --vgname=atomicos | |
# create a swap partition 2GB in size | |
logvol swap --fstype swap --name=lv_swap --vgname=atomicos --size=2048 | |
# disable cloud-init so that the system will boot normally without an init ISO | |
services --disabled="cloud-init,cloud-config,cloud-final,cloud-init-local" | |
# set up ostree to pull from the thumb drive | |
ostreesetup --osname="fedora-atomic" --remote="fedora-atomic" --url="file:////run/install/repo/content/repo" --ref="fedora-atomic/24/x86_64/docker-host" --nogpg | |
# turn on selinux | |
selinux --enforcing | |
# add some demo users and passwords | |
rootpw --plaintext fedora24 | |
user --name=atomic --groups=wheel --password=atomic | |
# once the system boots, switch the ostree repo to be the upstream one so that | |
# we can pull a new ostree, then upgrade | |
%post --erroronfail | |
rm -f /etc/ostree/remotes.d/fedora-atomic.conf | |
ostree remote add --set=gpg-verify=false fedora-atomic 'http://dl.fedoraproject.org/pub/fedora/linux/atomic/24/' | |
rpm-ostree upgrade | |
%end | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment