Guest User

Untitled

a guest
Jun 6th, 2024
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. #############################
  2. isolinux/isolinux.cfg (snippet)
  3. #############################
  4. label linux
  5. menu label ^Install Rocky Linux 9.4
  6. kernel vmlinuz
  7. append initrd=initrd.img inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  8.  
  9. label check
  10. menu label Test this ^media & install Rocky Linux 9.4
  11. menu default
  12. kernel vmlinuz
  13. append initrd=initrd.img inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd rd.live.check quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  14.  
  15. menu separator # insert an empty line
  16.  
  17. # utilities submenu
  18. menu begin ^Troubleshooting
  19. menu title Troubleshooting
  20.  
  21. label text
  22. menu indent count 5
  23. menu label Install Rocky Linux 9.4 using ^text mode
  24. text help
  25. Try this option out if you're having trouble installing
  26. Rocky Linux 9.4.
  27. endtext
  28. kernel vmlinuz
  29. append initrd=initrd.img inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd inst.text quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  30.  
  31. label rescue
  32. menu indent count 5
  33. menu label ^Rescue a Rocky Linux system
  34. text help
  35. If the system will not boot, this lets you access files
  36. and edit config files to try to get it booting again.
  37. endtext
  38. kernel vmlinuz
  39. append initrd=initrd.img inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd inst.rescue quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  40.  
  41. label memtest
  42. menu label Run a ^memory test
  43. text help
  44. If your system is having issues, a problem with your
  45. system's memory may be the cause. Use this utility to
  46. see if the memory is working correctly.
  47. endtext
  48. kernel memtest
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. ##########################
  57. isolinux/grub.cfg
  58. ##########################
  59. #debug --graphics
  60. default=1
  61. splashimage=@SPLASHPATH@
  62. timeout 60
  63. hiddenmenu
  64. title Install Rocky Linux 9.4
  65. findiso
  66. kernel @KERNELPATH@ @ROOT@ quiet
  67. initrd @INITRDPATH@
  68. title Test this media & install Rocky Linux 9.4
  69. findiso
  70. kernel @KERNELPATH@ @ROOT@ rd.live.check quiet
  71. initrd @INITRDPATH@
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. ###########################
  83. EFI/BOOT/grub.cfg
  84. ###########################
  85. set default="1"
  86.  
  87. function load_video {
  88. insmod efi_gop
  89. insmod efi_uga
  90. insmod video_bochs
  91. insmod video_cirrus
  92. insmod all_video
  93. }
  94.  
  95. load_video
  96. set gfxpayload=keep
  97. insmod gzio
  98. insmod part_gpt
  99. insmod ext2
  100.  
  101. set timeout=60
  102. ### END /etc/grub.d/00_header ###
  103.  
  104. search --no-floppy --set=root -l 'Rocky-9-4-x86_64-dvd'
  105.  
  106. ### BEGIN /etc/grub.d/10_linux ###
  107. menuentry 'Install Rocky Linux 9.4' --class fedora --class gnu-linux --class gnu --class os {
  108. linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  109. initrdefi /images/pxeboot/initrd.img
  110. }
  111. menuentry 'Test this media & install Rocky Linux 9.4' --class fedora --class gnu-linux --class gnu --class os {
  112. linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd rd.live.check quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  113. initrdefi /images/pxeboot/initrd.img
  114. }
  115. submenu 'Troubleshooting -->' {
  116. menuentry 'Install Rocky Linux 9.4 in text mode' --class fedora --class gnu-linux --class gnu --class os {
  117. linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd inst.text quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  118. initrdefi /images/pxeboot/initrd.img
  119. }
  120. menuentry 'Rescue a Rocky Linux system' --class fedora --class gnu-linux --class gnu --class os {
  121. linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-9-4-x86_64-dvd inst.rescue quiet inst.ks=hd:LABEL=Rocky-9-4-x86_64-dvd:/ks1.cfg
  122. initrdefi /images/pxeboot/initrd.img
  123. }
  124. }
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. #########################
  137.  
  138.  
  139. [root@localhost mnt]# ls -l
  140. total 14
  141. drwxr-xr-x. 1 root root 2048 May 5 21:18 BaseOS
  142. drwxrwxr-x. 1 root root 2048 May 5 02:12 EFI
  143. drwxrwxr-x. 1 root root 2048 May 5 02:12 images
  144. drwxrwxr-x. 1 root root 2048 May 5 02:12 isolinux
  145. -rw-------. 1 root root 810 Jun 5 12:45 ks1.cfg
  146. -rw-r--r--. 1 root root 2204 May 1 01:30 LICENSE
  147. -rw-r--r--. 1 root root 101 May 5 06:23 media.repo
  148. drwxr-xr-x. 1 root root 2048 May 5 21:45 minimal
  149.  
Advertisement
Add Comment
Please, Sign In to add comment