Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Installation Methods and Sources
- install
- url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-24&arch=x86_64"
- # Check media before install
- #mediacheck
- # Repos
- %include repos-base.ks
- # Storage and Partitioning
- autopart --type=lvm
- # Bootloader
- bootloader --location=mbr --driveorder=sda --boot-drive=sda
- # Remove All Existing Partitions
- clearpart --all --initlabel
- # Ignore Specified Disks
- ignoredisk --only-use=sda
- # Reinitialize Partition Tables
- zerombr
- # Configure Firewall
- #firewall --enable --ssh
- firewall --disabled
- # Configure Network Interfaces # --hostname=fedora
- network --bootproto=dhcp --noipv6 --device=link --activate
- # Configure Keyboard Layouts
- keyboard --vckeymap=us --xlayouts=''
- # Configure Language During Installation
- lang en_US.UTF-8 --addsupport=ru_RU.UTF-8
- # Configure Services
- services --disabled=dnf-makecache --enabled=sshd,chronyd
- # Don't configure the X Window System
- skipx
- # Configure Time Zone
- timezone Europe/Moscow
- # Configure Authentication
- auth --enableshadow --passalgo=sha512
- # Set Root Password
- rootpw --plaintext ROOT_PASSWORD --lock
- # Configure SELinux
- selinux --enforcing
- # Add an Authorized SSH Key
- sshkey --username=netforhack "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEA73eXowkmv8dyYrz92K47K53fREMOm2MOqOZqd8463f6N1Zb53rxd6SgonnCEJhA4j+lnxmjReNuoZAnBWaphQ6l7PNIY/s5ht+zIUzCCytyz19dDA7QQqXa9VcvQ07BuyTlLafkTgLKUxWlYZQ1LgLARFrBvSWEAwlGqF9Nv5U7lgd+WZ1jf8bARNjhe56Ha9CrkdHoLmBMBN/BroeS1idYYc77LmjEMyoZkKfeX+jmSGgZSjg9NfEfa6x4Qw94guMm8Cxb/+ZOlyt18oduIGDEWG+NBDO5h2tDhitnKlJvQPPkvTg9fi8KZyqLiW8GOXc0xIfuoRQInvVaKGogetw== rsa-key-20160811"
- sshkey --username=quko8 ""
- # Create User Account
- user --groups=wheel --name=quko8 --password=qukop --plaintext --shell=/usr/bin/zsh
- user --groups=wheel --name=netforhack --password=netforhackp --plaintext
- # Configure Error Logging During Installation
- logging --level=debug
- # Perform Installation in Text Mode
- #text
- cmdline
- # Enable or Disable Initial Setup
- firstboot --disable
- # Reboot After Installation
- reboot --eject
- # Package Selection
- %packages
- zsh
- nano
- ps_mem
- tmux
- -PackageKit*
- #-NetworkManager*
- %end
- # Configure kdump
- %addon com_redhat_kdump --disable
- %end
- # Pre-installation Script
- %pre --erroronfail --log=/root/ks-pre.log
- %end
- # Post-installation Script
- %post --erroronfail --log=/root/ks-post.log
- # Yandex dns
- #echo 'nameserver 77.88.8.8' > /etc/resolv.conf
- # Import RPM GPG key
- releasever=$(rpm -q --qf '%{version}\n' fedora-release)
- basearch=$(uname -i)
- rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
- # Test.
- #rm -f /var/lib/rpm/__db*
- # set hostname. (it here because if not autopart will create fedora_fedora)
- hostnamectl set-hostname podhvostikom
- # Configure dnf
- dnf config-manager \
- --setopt fastestmirror=1 \
- --setopt minrate=1000 \
- --setopt max_parallel_downloads=10 \
- --setopt metadata_timer_sync=0 \
- --save
- # Disabling tmpfs for /tmp.
- systemctl mask tmp.mount
- # Addition packages.
- dnf copr enable -y decathorpe/syncthing
- dnf install -y syncthing
- # Fix selinux contexts
- #/usr/sbin/fixfiles -R -a restore
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement