-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathSolus.cfg
39 lines (35 loc) · 1.1 KB
/
Solus.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
# Solus
# https://getsol.us
iso_pattern="Solus-*.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="root=live:CDLABEL=$cd_label ro rd.luks=0 rd.md=0 rd.live.overlay.overlayfs=1"
linux_path="(loop)/boot/kernel"
initrd_path="(loop)/boot/initrd.img"
menuentry "Start Solus" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions quiet splash
echo Loading initrd...
initrd $initrd_path
}
menuentry "Start Solus (nomodeset -- NVIDIA compatibility mode)" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions quiet splash nomodeset
echo Loading initrd...
initrd $initrd_path
}
menuentry "Start Solus (verbose debugging mode)" {
echo Loading kernel...
linux $linux_path $isocfg $bootoptions rd.debug rd.live.debug systemd.log_level=debug
echo Loading initrd...
initrd $initrd_path
}
}
fi
done