Advertisement
vonschutter

Untitled

May 4th, 2021
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.53 KB | None | 0 0
  1.         write_information "Selected configuration is workstation..."
  2.         cat >> ${FILE} <<-KS_EOF
  3.         # Generated by: generate_fedora_ks_cfg_file
  4.         # Choosing mode (graphical|text|cmdline [--non-interactive])
  5.         graphical
  6.  
  7.         # Configure installation method
  8.         install
  9.         url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-${FedoraVersion}&arch=x86_64"
  10.  
  11.         # Setup Agent on first boot
  12.         firstboot --disable
  13.  
  14.         # Keyboard layouts
  15.         keyboard --vckeymap=us --xlayouts='us'
  16.  
  17.         # System language
  18.         lang en_US.UTF-8
  19.  
  20.         # System timezone
  21.         timezone Europe/London --isUtc --ntpservers=0.pool.ntp.org
  22.  
  23.         # Network information
  24.         network --onboot=yes --bootproto=dhcp
  25.  
  26.         # Root password
  27.         rootpw $6$Rn5/UTzjIs68MX$9gz8vmshGlPqse3VoX8dzSfhWxRVoYv1MB6aGRD8xdvztOf.gD.SxxVWkxYrwwbShB9Q14flqu --iscrypted
  28.  
  29.         # User password
  30.         user --groups=wheel --name=tangarora --password=$6$Rn5/UTzjIs68MX$9gz8vmshGlPqse3VoX8dzSfhWxRVoYv1MB6aGRD8xdvztOf --iscrypted
  31.  
  32.         # Partition clearing information
  33.         zerombr
  34.         clearpart --all
  35.  
  36.         # Disk partitioning information
  37.         autopart --nohome --encrypted --passphrase letmein1234
  38.  
  39.         #Reboot the system after installation.
  40.         reboot
  41.  
  42.         %packages --retries 5 --timeout 20
  43.         @^workstation-product-environment
  44.         openssh-server
  45.         spice-vdagent
  46.         git
  47.         %end
  48.  
  49.         # Post-installation Script
  50.         %post --interpreter=/bin/bash
  51.         git clone https://github.com/vonschutter/RTD-Setup.git /opt/rtd
  52.         chmod 755 /opt/rtd/core/rtd-oem-enable-config.sh
  53.         bash /opt/rtd/core/rtd-oem-enable-config.sh
  54.         %end
  55.         KS_EOF
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement