lucianpb

oracle linux 8 minimal ks

Sep 29th, 2023 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. text
  2. skipx
  3. reboot
  4.  
  5.  
  6. %packages
  7. @^minimal-environment
  8.  
  9. # some extra stuff, some of it depends on having the EPEL repo defined during installation, see inst.addrepo command line
  10. # Xen guest
  11. xe-guest-utilities-latest
  12. # VMWare guest
  13. open-vm-tools
  14. # KVM guest
  15.  
  16. # performance
  17. acpid
  18. chrony
  19. rng-tools
  20. tuned
  21. tuned-utils
  22.  
  23.  
  24. # utils
  25. screen
  26. tmux
  27. mc
  28. nano
  29. vim
  30. net-tools
  31. wget
  32.  
  33. # cloud-init support
  34. cloud-init
  35. cloud-utils-growpart
  36.  
  37. %end
  38.  
  39. # Keyboard layouts
  40. keyboard --xlayouts='us'
  41. # System language
  42. lang en_US.UTF-8
  43.  
  44. # Network information
  45. network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
  46. network --hostname=localhost.localdomain
  47.  
  48. # services
  49. services --enabled=NetworkManager,acpid,chronyd,sshd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd,tuned,vmtoolsd,xe-linux-distribution --disabled=kdump
  50.  
  51.  
  52. firstboot --disable
  53. eula --agreed
  54.  
  55. # disk
  56. #ignoredisk --only-use=vda
  57. zerombr
  58. # Partition clearing information
  59. # clearpart --none --initlabel
  60. clearpart --initlabel --all
  61. # Disk partitioning information
  62. part pv.111 --fstype="lvmpv" --size=7167 --grow
  63. part /boot --fstype="ext4" --size=1024 --label=sysboot
  64. volgroup mainvg --pesize=4096 pv.111
  65. logvol / --fstype="ext4" --size=6344 --grow --label="sysroot" --name=root --vgname=mainvg
  66.  
  67. # System timezone
  68. timezone Etc/GMT --utc
  69.  
  70. # Root password is "password"
  71. rootpw --iscrypted $6$P7tYlekEbtEO4sj8$r43BhOqVxUSb9FAX82DJYR6iUQ622P1eaulE8dc.e91SEU7KaSrW8kI/TmM6k0aNXbnV20l6n6Fj/XwycOQVi/
  72.  
  73. %addon com_redhat_kdump --disable --reserve-mb='auto'
  74.  
  75. %end
  76.  
  77. %post --erroronfail
  78.  
  79. # better virtualisation support
  80. echo 'add_drivers+="mptbase mptscsih mptspi mptsas BusLogic ahci vmw_pvscsi pvscsi e1000 e1000e pcnet32 vmxnet vmxnet3 virtio_blk virtio_scsi virtio_net virtio_console xen_blkfront xen_netfront nvme_core nvme"' > /etc/dracut.conf.d/openvm.conf
  81.  
  82. # To make dracut config changes permanent, we need to rerun dracut.
  83. # Rerun dracut for the installed kernel (not the running kernel).
  84. KERNEL_VERSION="$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n' | sort -V | tail -1)"
  85. dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
  86. restorecon -Rv /etc/dracut.conf.d
  87.  
  88. %end
  89.  
  90.  
Advertisement
Add Comment
Please, Sign In to add comment