-
-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathOracleLinux.cfg
More file actions
45 lines (41 loc) · 1.27 KB
/
Copy pathOracleLinux.cfg
File metadata and controls
45 lines (41 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
45
# Oracle Linux
# https://www.oracle.com/linux
iso_pattern="OracleLinux-*-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"
linux_path="(loop)/images/pxeboot/vmlinuz"
initrd_path="(loop)/images/pxeboot/initrd.img"
menuentry "Install Oracle Linux" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions quiet
echo Loading initrd...
initrd $initrd_path
}
menuentry "Test this media & install Oracle Linux" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions rd.live.check quiet
echo Loading initrd...
initrd $initrd_path
}
menuentry "Install Oracle Linux in text mode" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions inst.text quiet
echo Loading initrd...
initrd $initrd_path
}
menuentry "Rescue a Oracle Linux system" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions inst.rescue quiet
echo Loading initrd...
initrd $initrd_path
}
}
fi
done