Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions grub2/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ if any_exists ${isopath}/elementary/elementaryos-*.iso; then
}
fi

if any_exists ${isopath}/endeavour/EndeavourOS*.iso; then
menuentry "EndeavourOS >" --class endeavour {
configfile "${prefix}/inc-endeavour.cfg"
}
fi

if any_exists ${isopath}/fedora/Fedora-*.iso; then
menuentry "Fedora >" --class fedora {
configfile "${prefix}/inc-fedora.cfg"
Expand Down
19 changes: 19 additions & 0 deletions grub2/inc-endeavour.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EndeavourOS
function add_menu {
isofile="$1"

regexp \
--set 1:isoname \
--set 3:version \
"^${isopath}/endeavour/(EndeavourOS_([^_]+)-([^-]+)\.iso)\$" "${isofile}"
menuentry "EndeavourOS ${version}" "${isofile}" "${isoname}" --class endeavour {
set isofile=$2
set isoname=$3
use "${isoname}"
loop $isofile
linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=/dev/disk/by-uuid/${rootuuid} img_loop="${isofile}" earlymodules=loop
initrd (loop)/arch/boot/intel-ucode.img (loop)/arch/boot/amd-ucode.img (loop)/arch/boot/x86_64/initramfs-linux.img
}
}

for_each_sorted add_menu "$isopath"/endeavour/EndeavourOS*.iso
Binary file added grub2/themes/invader/icons/endeavour.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons-original/invader/endeavour.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.