-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathRocky.cfg
45 lines (41 loc) · 1.23 KB
/
Rocky.cfg
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
45
# Rocky Linux
# https://rockylinux.org
iso_pattern="Rocky-*-x86_64-*.iso"
for isofile in $iso_dir/$iso_pattern; do
if [ -e "$isofile" ]; then
regexp --set=isoname "$iso_dir/(.*)" "$isofile"
submenu "$isoname ->" "$isofile" {
iso_path="$2"
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="inst.stage2=hd:LABEL=$cd_label"
linux_path="(loop)/images/pxeboot/vmlinuz"
initrd_path="(loop)/images/pxeboot/initrd.img"
menuentry "Install Rocky Linux" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions quiet
echo Loading initrd...
initrd $initrd_path
}
menuentry "Test this media & install Rocky Linux" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions rd.live.check quiet
echo Loading initrd...
initrd $initrd_path
}
menuentry "Install Rocky Linux in text mode" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions inst.text quiet
echo Loading initrd...
initrd $initrd_path
}
menuentry "Rescue a Rocky Linux system" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions inst.rescue quiet
echo Loading initrd...
initrd $initrd_path
}
}
fi
done