Guest User

kickstart_custom_part

a guest
May 30th, 2021
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. url --mirrorlist="https://mirrors.fedoraproject.org/metalink?repo=fedora-34&arch=x86_64"
  2. repo --name=fedora-updates --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f34&arch=x86_64" --cost=0
  3. repo --name=rpmfusion-free --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-34&arch=x86_64" --includepkgs=rpmfusion-free-release
  4. repo --name=rpmfusion-free-updates --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-34&arch=x86_64" --cost=0
  5. repo --name=rpmfusion-nonfree --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-34&arch=x86_64" --includepkgs=rpmfusion-nonfree-release
  6. repo --name=rpmfusion-nonfree-updates --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-34&arch=x86_64" --cost=0
  7.  
  8. %pre-install --erroronfail
  9. echo 1 > /tmp/pre-install-started
  10. mount_point=/mnt/sysroot
  11. mkdir -p ${mount_point}/etc/skel/.config/i3
  12. #curl "https://raw.githubusercontent.com/*/main/i3" --output ${mount_point}/etc/skel/.config/i3/config
  13. #curl "https://raw.githubusercontent.com/*/main/bash_profile" --output ${mount_point}/etc/skel/.bash_profile
  14. sleep 5s
  15. exit 0
  16. %end
  17.  
  18. %packages --multilib
  19. -dmenu
  20. -rxvt-unicode
  21. -i3lock
  22. -i3status
  23. -i3blocks
  24. #-xorg-x11-drv*
  25. @hardware-support
  26. @Multimedia --optional
  27. @base-x
  28. # start -- Fonts section
  29. liberation-sans-fonts
  30. liberation-serif-fonts
  31. dejavu-sans-fonts
  32. dejavu-serif-fonts
  33. # end -- Fonts section
  34. xorg-x11-drv-nvidia
  35. akmod-nvidia
  36. i3
  37. neovim
  38. bash-completion
  39. alacritty
  40. rofi
  41. %end
  42.  
  43. text
  44.  
  45. clearpart --drives=sda --all
  46. zerombr
  47.  
  48. # Config causes read-only fs
  49. #reqpart --add-boot
  50. part /boot --asprimary --size=1000 --ondrive=sda --fstype ext4 --fsoptions="rw"
  51. part swap --asprimary --size=300 --ondrive=sda
  52. part / --asprimary --grow --maxsize=120000 --ondrive=sda --fstype ext4
  53.  
  54. #autopart --type=plain --fstype=ext4 --encrypted --passphrase=cryptodisco000
  55. #part /home --asprimary --grow --maxsize=120000 --ondrive=sda --fstype ext4 --encrypted --passphrase=cryptodisco000
  56.  
  57. bootloader --timeout=1 --location=mbr --driveorder=sda --boot-drive=sda --append="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau append=nvidia-drm.modeset"
  58. firewall --enabled
  59. network --onboot=yes --bootproto=dhcp --hostname=fedoraks
  60. keyboard us
  61. lang en_US --addsupport=ru_RU
  62.  
  63. # :(
  64. selinux --permissive
  65.  
  66. #services --disabled=mlocate-updatedb,mlocate-updatedb.timer,systemd-journal-catalog-update,systemd-journal-flush,systemd-journald,systemd-journald.socket,systemd-journald-audit.socket
  67. services --disabled=mlocate-updatedb,mlocate-updatedb.timer
  68.  
  69. timezone Europe/Kiev
  70. rootpw --lock
  71. user --name=dmitry --password="$6$s44VIa$lPfzaYEqQEsH5RtoWdF5yxq51rPcnAlayWJdv5BQ1qR/ZbGPxjaOrc.mMb2izk/5aWPkeZe6BNha0YxlADSvx/" --iscrypted --groups=wheel
  72. rootpw --lock
  73. reboot --eject
  74.  
  75. %post --nochroot --erroronfail
  76. echo 1 > /tmp/post-started
  77. mount_point=/mnt/sysroot
  78. sleep 5s
  79. rm -rf ${mount_point}/var/log/*
  80. rm -rf ${mount_point}/var/tmp/*
  81. rm -rf ${mount_point}/tmp/*
  82. sleep 5s
  83. #echo b > /proc/sysrq-trigger
  84. exit 0
  85. %end
Advertisement
Add Comment
Please, Sign In to add comment