-
Notifications
You must be signed in to change notification settings - Fork 65
/
pxelive.ks
30 lines (25 loc) · 1.04 KB
/
pxelive.ks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# PXE-to-Live Atomic: PXE boot directly into a running Atomic Host
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
part / --fstype="xfs" --size=6000
# ostree only does separate /boot partition currently
part /boot --size=200 --fstype="xfs"
shutdown
services --disabled=docker-storage-setup,network
services --enabled=NetworkManager,sshd,cloud-init,cloud-init-local,cloud-config,cloud-final
ostreesetup --osname="centos-atomic-host" --remote="centos-atomic-continuous" --ref="centos-atomic-host/7/x86_64/devel/continuous" --url="https://ci.centos.org/artifacts/sig-atomic/centos-continuous/ostree/repo/" --nogpg
%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