-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Void Linux | ||
# https://voidlinux.org | ||
|
||
iso_pattern="void-live-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 loop $iso_path | ||
probe --label --set=cd_label (loop) | ||
isocfg="iso-scan/filename=${iso_path}" | ||
bootoptions="root=live:CDLABEL=$cd_label ro init=/sbin/init rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap vconsole.unicode=1 vconsole.keymap=us locale.LANG=en_US.UTF-8 rd.live.overlay.overlayfs=1" | ||
linux_path="(loop)/boot/vmlinuz" | ||
initrd_path="(loop)/boot/initrd" | ||
|
||
menuentry "Void Linux" { | ||
echo Loading kernel... | ||
linux $linux_path $bootoptions $isocfg | ||
echo Loading initrd... | ||
initrd $initrd_path | ||
} | ||
menuentry "Void Linux (RAM)" { | ||
echo Loading kernel... | ||
linux $linux_path $bootoptions $isocfg rd.live.ram | ||
echo Loading initrd... | ||
initrd $initrd_path | ||
} | ||
menuentry "Void Linux with speech" { | ||
echo Loading kernel... | ||
linux $linux_path $bootoptions $isocfg live.accessibility live.autologin | ||
echo Loading initrd... | ||
initrd $initrd_path | ||
} | ||
menuentry "Void Linux with speech (RAM)" { | ||
echo Loading kernel... | ||
linux $linux_path $bootoptions $isocfg live.accessibility live.autologin rd.live.ram | ||
echo Loading initrd... | ||
initrd $initrd_path | ||
} | ||
} | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters