| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | # Use text mode installtextreboot%packages@^minimal-environment%end# SELinux configurationselinux --enforcing# Keyboard layoutskeyboard --vckeymap=us-acentos --xlayouts='us (intl)'# System languagelang en_US.UTF-8# Network informationnetwork --onboot=yes --device=eth0 --bootproto=static --ip=192.168.122.100 --netmask=255.255.255.0 --gateway=192.168.122.1 --nameserver=192.168.122.1network  --hostname=fedorafirstboot --enable# Do not configure the X Window Systemskipx# Basic servicesservices --enabled=sshdignoredisk --only-use=vda# Partition clearing informationclearpart --all --initlabel --drive=vda# Disk partitioning informationautopart --type=lvm --nohome --encrypted --luks-version=luks2 --pbkdf=pbkdf2 --pbkdf-iterations=1000  --pbkdf-memory=64 --passphrase=fedora%post --erroronfail --interpreter /bin/bashprintf "Changing output to TTY 3; press Alt-F3 to view\r\n" > /dev/tty1{    dnf update -y    mkdir -m0700 /root/.ssh/    cat <<EOF >/root/.ssh/authorized_keys@PUBKEY@EOF    chmod 0600 /root/.ssh/authorized_keys    restorecon -R /root/.ssh/    # Build and install clevis.    dnf -y install dnf-utils    dnf -y builddep clevis    dnf -y install dracut-network nmap-ncat    git clone https://github.com/@TRAVIS_REPO_SLUG@.git @TRAVIS_REPO_SLUG@    cd @TRAVIS_REPO_SLUG@    git checkout -qf @TRAVIS_COMMIT@    mkdir build && pushd build    meson .. --prefix=/usr    ninja install    # Setup NBDE.    TANG=192.168.122.1    curl "${TANG}/adv" -o adv.jws    cfg=$(printf '{"url":"%s","adv":"adv.jws"}' "${TANG}")    for dev in $(lsblk -p -n -s -r | awk '$6 == "crypt" { getline; print $1 }' | sort -u); do        clevis luks bind -f -d "${dev}" tang "${cfg}" <<< fedora    done    mkdir -p /etc/dracut.conf.d/    cat <<EOF >/etc/dracut.conf.d/clevis.confkernel_cmdline="rd.neednet=1 ip=192.168.122.100::192.168.122.1:255.255.255.0::eth0:none:192.168.122.1"EOF    dracut -f --regenerate-all} 2>&1 | tee /root/postinstall.log > /dev/tty3%end# System timezonetimezone America/Fortaleza --utc# Root passwordrootpw --plaintext fedora%addon com_redhat_kdump --disable --reserve-mb='128'%end
 |