1*387f9dfdSAndroid Build Coastguard Worker# Minimal Kickstart file 2*387f9dfdSAndroid Build Coastguard Workerinstall 3*387f9dfdSAndroid Build Coastguard Workertext 4*387f9dfdSAndroid Build Coastguard Workerreboot 5*387f9dfdSAndroid Build Coastguard Workerlang en_US.UTF-8 6*387f9dfdSAndroid Build Coastguard Worker 7*387f9dfdSAndroid Build Coastguard Worker# repo to install the OS 8*387f9dfdSAndroid Build Coastguard Workerurl --url=<%= @mirror %>/Everything/x86_64/os/ 9*387f9dfdSAndroid Build Coastguard Worker 10*387f9dfdSAndroid Build Coastguard Workerkeyboard us 11*387f9dfdSAndroid Build Coastguard Workernetwork --bootproto dhcp 12*387f9dfdSAndroid Build Coastguard Workerrootpw <%= @password %> 13*387f9dfdSAndroid Build Coastguard Workerauthconfig --enableshadow --passalgo=sha512 --enablefingerprint 14*387f9dfdSAndroid Build Coastguard Workerfirewall --enabled --ssh 15*387f9dfdSAndroid Build Coastguard Workerselinux --enforcing 16*387f9dfdSAndroid Build Coastguard Workertimezone --utc America/Los_Angeles 17*387f9dfdSAndroid Build Coastguard Worker#firstboot --disable 18*387f9dfdSAndroid Build Coastguard Workerbootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH crashkernel=auto" 19*387f9dfdSAndroid Build Coastguard Workerzerombr 20*387f9dfdSAndroid Build Coastguard Workerclearpart --all --initlabel 21*387f9dfdSAndroid Build Coastguard Workerautopart --type=lvm 22*387f9dfdSAndroid Build Coastguard Workerrepo --name=everything --baseurl=<%= @mirror %>/Everything/x86_64/os/ 23*387f9dfdSAndroid Build Coastguard Worker 24*387f9dfdSAndroid Build Coastguard Worker#Just core packages 25*387f9dfdSAndroid Build Coastguard Worker%packages --nobase 26*387f9dfdSAndroid Build Coastguard Worker@core 27*387f9dfdSAndroid Build Coastguard Workerntp 28*387f9dfdSAndroid Build Coastguard Worker@c-development 29*387f9dfdSAndroid Build Coastguard Worker@development-tools 30*387f9dfdSAndroid Build Coastguard Worker@rpm-development-tools 31*387f9dfdSAndroid Build Coastguard Workerncurses-devel 32*387f9dfdSAndroid Build Coastguard Workervim 33*387f9dfdSAndroid Build Coastguard Workerbc 34*387f9dfdSAndroid Build Coastguard Workerkexec-tools 35*387f9dfdSAndroid Build Coastguard Workercmake 36*387f9dfdSAndroid Build Coastguard Workerlibstdc++-static 37*387f9dfdSAndroid Build Coastguard Workerpython-netaddr 38*387f9dfdSAndroid Build Coastguard Workerpython-cachetools 39*387f9dfdSAndroid Build Coastguard Workerpython-futures 40*387f9dfdSAndroid Build Coastguard Worker%end 41*387f9dfdSAndroid Build Coastguard Worker 42*387f9dfdSAndroid Build Coastguard Worker%post --log=/root/anaconda-post.log 43*387f9dfdSAndroid Build Coastguard Workerecho Kickstart post 44*387f9dfdSAndroid Build Coastguard Worker 45*387f9dfdSAndroid Build Coastguard Workerchkconfig NetworkManager off 46*387f9dfdSAndroid Build Coastguard Workerchkconfig network on 47*387f9dfdSAndroid Build Coastguard Worker 48*387f9dfdSAndroid Build Coastguard Workerchkconfig ntpd on 49*387f9dfdSAndroid Build Coastguard Worker 50*387f9dfdSAndroid Build Coastguard Workerdnf config-manager --add-repo=http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedora-rawhide-kernel-nodebug.repo 51*387f9dfdSAndroid Build Coastguard Worker 52*387f9dfdSAndroid Build Coastguard Workeryum -y clean metadata 53*387f9dfdSAndroid Build Coastguard Workeryum -y update 54*387f9dfdSAndroid Build Coastguard Worker 55*387f9dfdSAndroid Build Coastguard Workerhostname <%= @name %>.<%= @domain %> 56*387f9dfdSAndroid Build Coastguard Workerecho "<%= @name %>.<%= @domain %>" > /etc/hostname 57*387f9dfdSAndroid Build Coastguard Worker 58*387f9dfdSAndroid Build Coastguard Workercat > /usr/local/bin/bpf-kernel-setup <<'DELIM__' 59*387f9dfdSAndroid Build Coastguard Worker#!/bin/bash 60*387f9dfdSAndroid Build Coastguard Workerset -e -x 61*387f9dfdSAndroid Build Coastguard Workernumcpu=$(grep -c ^processor /proc/cpuinfo) 62*387f9dfdSAndroid Build Coastguard Worker 63*387f9dfdSAndroid Build Coastguard Workergit clone https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 64*387f9dfdSAndroid Build Coastguard Workercd net-next/ 65*387f9dfdSAndroid Build Coastguard Worker 66*387f9dfdSAndroid Build Coastguard Workercp /boot/config-$(uname -r) ./ 67*387f9dfdSAndroid Build Coastguard Workercp ./config-$(uname -r) .config 68*387f9dfdSAndroid Build Coastguard Worker 69*387f9dfdSAndroid Build Coastguard Workermake -j$numcpu mrproper 70*387f9dfdSAndroid Build Coastguard Workermake -j$numcpu nconfig 71*387f9dfdSAndroid Build Coastguard Workermake -j$numcpu bzImage 72*387f9dfdSAndroid Build Coastguard Workermake -j$numcpu modules 73*387f9dfdSAndroid Build Coastguard Workersudo make modules_install 74*387f9dfdSAndroid Build Coastguard Workersudo make install 75*387f9dfdSAndroid Build Coastguard Workersudo make INSTALL_HDR_PATH=/usr/local headers_install 76*387f9dfdSAndroid Build Coastguard Worker 77*387f9dfdSAndroid Build Coastguard Workerrelease=$(<include/config/kernel.release) 78*387f9dfdSAndroid Build Coastguard Workerecho "kexec -l /boot/vmlinuz-$release --initrd=/boot/initramfs-$release.img --reuse-cmdline; reboot" > /usr/local/bin/kexec-$release 79*387f9dfdSAndroid Build Coastguard Workerchmod +x /usr/local/bin/kexec-$release 80*387f9dfdSAndroid Build Coastguard Workerln -fs kexec-$release /usr/local/bin/kexec-latest 81*387f9dfdSAndroid Build Coastguard Worker 82*387f9dfdSAndroid Build Coastguard WorkerDELIM__ 83*387f9dfdSAndroid Build Coastguard Workerchmod +x /usr/local/bin/bpf-kernel-setup 84*387f9dfdSAndroid Build Coastguard Worker 85*387f9dfdSAndroid Build Coastguard Workercat > /usr/local/bin/bpf-llvm-setup <<'DELIM__' 86*387f9dfdSAndroid Build Coastguard Worker#!/bin/bash 87*387f9dfdSAndroid Build Coastguard Workerset -e -x 88*387f9dfdSAndroid Build Coastguard Workernumcpu=$(grep -c ^processor /proc/cpuinfo) 89*387f9dfdSAndroid Build Coastguard Worker 90*387f9dfdSAndroid Build Coastguard Workergit clone https://github.com/llvm-mirror/llvm.git 91*387f9dfdSAndroid Build Coastguard Workergit clone https://github.com/llvm-mirror/clang.git llvm/tools/clang 92*387f9dfdSAndroid Build Coastguard Workermkdir llvm/build/ 93*387f9dfdSAndroid Build Coastguard Workercd llvm/build/ 94*387f9dfdSAndroid Build Coastguard Worker 95*387f9dfdSAndroid Build Coastguard Workercmake .. \ 96*387f9dfdSAndroid Build Coastguard Worker -DBUILD_SHARED_LIBS=OFF \ 97*387f9dfdSAndroid Build Coastguard Worker -DCMAKE_BUILD_TYPE=Release \ 98*387f9dfdSAndroid Build Coastguard Worker -DLLVM_ENABLE_TERMINFO=OFF \ 99*387f9dfdSAndroid Build Coastguard Worker -DLLVM_TARGETS_TO_BUILD="ARM;CppBackend;X86;BPF" \ 100*387f9dfdSAndroid Build Coastguard Worker -DCMAKE_INSTALL_PREFIX=/opt/local/llvm 101*387f9dfdSAndroid Build Coastguard Worker 102*387f9dfdSAndroid Build Coastguard Workermake -j$numcpu 103*387f9dfdSAndroid Build Coastguard Workersudo make install 104*387f9dfdSAndroid Build Coastguard Workergrep -q llvm $HOME/.bashrc || echo 'PATH=/opt/local/llvm/bin:$PATH' >> $HOME/.bashrc 105*387f9dfdSAndroid Build Coastguard Worker 106*387f9dfdSAndroid Build Coastguard WorkerDELIM__ 107*387f9dfdSAndroid Build Coastguard Workerchmod +x /usr/local/bin/bpf-llvm-setup 108*387f9dfdSAndroid Build Coastguard Worker 109*387f9dfdSAndroid Build Coastguard Workercat > /usr/local/bin/bcc-setup <<'DELIM__' 110*387f9dfdSAndroid Build Coastguard Worker#!/bin/bash 111*387f9dfdSAndroid Build Coastguard Workerset -e -x 112*387f9dfdSAndroid Build Coastguard Worker 113*387f9dfdSAndroid Build Coastguard Workergit clone https://github.com/svinota/pyroute2.git 114*387f9dfdSAndroid Build Coastguard Worker(cd pyroute2; make install) 115*387f9dfdSAndroid Build Coastguard Worker 116*387f9dfdSAndroid Build Coastguard Workernumcpu=$(grep -c ^processor /proc/cpuinfo) 117*387f9dfdSAndroid Build Coastguard Worker 118*387f9dfdSAndroid Build Coastguard Workergit clone https://github.com/iovisor/bcc.git 119*387f9dfdSAndroid Build Coastguard Workermkdir bcc/build/ 120*387f9dfdSAndroid Build Coastguard Workercd bcc/build/ 121*387f9dfdSAndroid Build Coastguard Workerexport PATH=/opt/local/llvm/bin:$PATH 122*387f9dfdSAndroid Build Coastguard Workercmake .. -DCMAKE_INSTALL_PREFIX=/usr 123*387f9dfdSAndroid Build Coastguard Workermake -j$numcpu 124*387f9dfdSAndroid Build Coastguard WorkerDELIM__ 125*387f9dfdSAndroid Build Coastguard Workerchmod +x /usr/local/bin/bcc-setup 126*387f9dfdSAndroid Build Coastguard Worker 127*387f9dfdSAndroid Build Coastguard Worker%end 128