Skip to content

Commit 57ef724

Browse files
Add Bazzite configuration file for ISO boot (#60)
* Add Bazzite configuration file for ISO boot * Detect ISOs on all MultiOS-USB partitions#49 * Add probe command for CD label detection --------- Co-authored-by: MexIT <25229673+Mexit@users.noreply.github.com>
1 parent c2a0594 commit 57ef724

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

config/bazzite/bazzite.cfg

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Bazzite (Fedora Atomic-based Live ISO)
2+
# https://bazzite.gg
3+
4+
iso_pattern="bazzite-*.iso"
5+
6+
for isofile in ($dev,*)$iso_dir/$iso_pattern; do
7+
if [ -e "$isofile" ]; then
8+
regexp --set=isoname "$iso_dir/(.*)" "$isofile"
9+
10+
submenu "$isoname ->" "$isofile" "$iso_dir/$isoname" {
11+
iso_path="$3"
12+
LOOPBACK "$2"
13+
probe --label --set=cd_label (loop)
14+
isocfg="iso-scan/filename=$iso_path"
15+
bootoptions="root=live:CDLABEL=$cd_label rd.live.image enforcing=0 quiet rhgb"
16+
linux_path="(loop)/images/pxeboot/vmlinuz"
17+
initrd_path="(loop)/images/pxeboot/initrd.img"
18+
19+
menuentry "Launch Bazzite Installer" {
20+
echo Loading kernel...
21+
linux $linux_path $isocfg $bootoptions
22+
echo Loading initrd...
23+
initrd $initrd_path
24+
}
25+
menuentry "Launch Bazzite Installer (Basic Graphics Mode)" {
26+
echo Loading kernel...
27+
linux $linux_path $isocfg $bootoptions nomodeset
28+
echo Loading initrd...
29+
initrd $initrd_path
30+
}
31+
}
32+
fi
33+
done

0 commit comments

Comments
 (0)