-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathCentOS.cfg
More file actions
44 lines (40 loc) · 1.27 KB
/
CentOS.cfg
File metadata and controls
44 lines (40 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# For CentOS Linux and CentOS Stream - DVD and net-install (boot)
iso_pattern="CentOS-*-x86_64-*.iso"
for isofile in ($dev,*)$iso_dir/$iso_pattern; do
if [ -e "$isofile" ]; then
regexp --set=isoname "$iso_dir/(.*)" "$isofile"
submenu "$isoname ->" "$isofile" "$iso_dir/$isoname" {
iso_path="$3"
LOOPBACK "$2"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="inst.stage2=hd:LABEL=$cd_label quiet"
linux_path="(loop)/images/pxeboot/vmlinuz"
initrd_path="(loop)/images/pxeboot/initrd.img"
menuentry "Install CentOS Linux" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions
echo Loading initrd...
initrd $initrd_path
}
menuentry "Test this media & install CentOS Linux" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions rd.live.check
echo Loading initrd...
initrd $initrd_path
}
menuentry "Install CentOS Linux in basic graphics mode" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions nomodeset
echo Loading initrd...
initrd $initrd_path
}
menuentry "Rescue a CentOS Linux system" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions rescue
echo Loading initrd...
initrd $initrd_path
}
}
fi
done