CentOS安装优盘制作草稿

  1 default vesamenu.c32
  2 timeout 600
  3 
  4 display boot.msg
  5 
  6 # Clear the screen when exiting the menu, instead of leaving the menu displayed.
  7 # For vesamenu, this means the graphical background is still displayed without
  8 # the menu itself for as long as the screen remains in graphics mode.
  9 menu clear
 10 menu background splash.png
 11 menu title Install CentOS 7 & 8 From USB
 12 menu vshift 8
 13 menu rows 18
 14 menu margin 8
 15 #menu hidden
 16 menu helpmsgrow 15
 17 menu tabmsgrow 13
 18 
 19 # Border Area
 20 menu color border * #00000000 #00000000 none
 21 
 22 # Selected item
 23 menu color sel 0 #ffffffff #00000000 none
 24 
 25 # Title bar
 26 menu color title 0 #ff7ba3d0 #00000000 none
 27 
 28 # Press [Tab] message
 29 menu color tabmsg 0 #ff3a6496 #00000000 none
 30 
 31 # Unselected menu item
 32 menu color unsel 0 #84b8ffff #00000000 none
 33 
 34 # Selected hotkey
 35 menu color hotsel 0 #84b8ffff #00000000 none
 36 
 37 # Unselected hotkey
 38 menu color hotkey 0 #ffffffff #00000000 none
 39 
 40 # Help text
 41 menu color help 0 #ffffffff #00000000 none
 42 
 43 # A scrollbar of some type? Not sure.
 44 menu color scrollbar 0 #ffffffff #ff355594 none
 45 
 46 # Timeout msg
 47 menu color timeout 0 #ffffffff #00000000 none
 48 menu color timeout_msg 0 #ffffffff #00000000 none
 49 
 50 # Command prompt text
 51 menu color cmdmark 0 #84b8ffff #00000000 none
 52 menu color cmdline 0 #ffffffff #00000000 none
 53 
 54 # Do not display the actual menu unless the user presses a key. All that is displayed is a timeout message.
 55 
 56 menu tabmsg Press Tab for full configuration options on menu items.
 57 
 58 menu separator # insert an empty line
 59 
 60 label local
 61   menu label > ^0 Boot From Local Disk
 62   menu default
 63   localboot 0xffff
 64 
 65 menu separator # insert an empty line
 66 
 67 label linux
 68   menu label > ^1 Install CentOS 7.9 Mini
 69   kernel vmlinuz79
 70   append initrd=initrd79.img inst.repo=hd:LABEL=CENTOS:CentOS-7-x86_64-Minimal-2009.iso
 71 
 72 label linux
 73   menu label > ^2 Install CentOS 7.5
 74   kernel vmlinuz75
 75   append initrd=initrd75.img inst.repo=hd:LABEL=CENTOS:CentOS-7-x86_64-Everything-1804.iso
 76 
 77 menu separator # insert an empty line
 78 
 79 label linux
 80   menu label > ^3 Install CentOS 7.9
 81   kernel vmlinuz79
 82   append initrd=initrd79.img inst.repo=hd:LABEL=CENTOS:CentOS-7-x86_64-Everything-2009.iso
 83 
 84 label linux
 85   menu label > ^4 Install CentOS 8.5
 86   kernel vmlinuz85
 87   append initrd=initrd85.img inst.repo=hd:LABEL=CENTOS:CentOS-8.5.2111-x86_64-dvd1.iso
 88 
 89 menu separator # insert an empty line
 90 
 91 ============================================================
 92 yum install -y syslinux-extlinux
 93 mkfs.ext4 /dev/sdb1 
 94 e2label /dev/sdb1 CENTOS
 95 mount /dev/sdb1 /mnt/
 96 extlinux --install /mnt
 97 cp isolinux/* /mnt/
 98 mv isolinux.cfg syslinux.cfg
 99 [root@localhost mnt]# ls -l /mnt
100 total 30942948
101 -r--r--r--. 1 root root        2048 Dec 22 19:27 boot.cat
102 -rw-r--r--. 1 root root          84 Dec 22 19:27 boot.msg
103 -rw-r--r--. 1 root root  9397338112 May 16  2019 CentOS-7-x86_64-Everything-1804.iso
104 -rw-r--r--. 1 root root 10200547328 Nov  2 17:35 CentOS-7-x86_64-Everything-2009.iso
105 -rw-r--r--. 1 root root  1020264448 Nov  3  2020 CentOS-7-x86_64-Minimal-2009.iso
106 -rw-r--r--. 1 root root 10794041344 Dec 21 18:22 CentOS-8.5.2111-x86_64-dvd1.iso
107 -rw-r--r--. 1 root root         281 Dec 22 19:27 grub.conf
108 -rw-r--r--. 1 root root    52893200 May  4  2018 initrd75.img
109 -rw-r--r--. 1 root root    55129656 Oct 27  2020 initrd79.img
110 -rw-r--r--. 1 root root    79709028 Nov 13 08:31 initrd85.img
111 -rw-r--r--. 1 root root    55129656 Dec 22 19:27 initrd.img
112 -rw-r--r--. 1 root root       24576 Dec 22 19:27 isolinux.bin
113 -r--r--r--. 1 root root       32768 Dec 22 18:54 ldlinux.sys
114 drwx------. 2 root root       16384 Dec 22 18:54 lost+found
115 -rw-r--r--. 1 root root      190896 Dec 22 19:27 memtest
116 -rw-r--r--. 1 root root         186 Dec 22 19:27 splash.png
117 -rw-r--r--. 1 root root        2322 Dec 23 00:59 syslinux.cfg
118 -r--r--r--. 1 root root        2215 Dec 22 19:27 TRANS.TBL
119 -rw-r--r--. 1 root root      153104 Dec 22 19:27 vesamenu.c32
120 -rwxr-xr-x. 1 root root     6769256 Dec 22 19:27 vmlinuz
121 -rw-r--r--. 1 root root     6224704 Apr 21  2018 vmlinuz75
122 -rw-r--r--. 1 root root     6769256 Oct 20  2020 vmlinuz79
123 -rw-r--r--. 1 root root    10271880 Oct 19 23:23 vmlinuz85
原文地址:https://www.cnblogs.com/www1707/p/15722265.html