Skip to content

Commit

Permalink
Add support for EndeavourOS
Browse files Browse the repository at this point in the history
  • Loading branch information
iguanajuice authored and Ahdbshsnsndnnm committed Apr 8, 2024
1 parent 5bbf5ac commit 043a02c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
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.

0 comments on commit 043a02c

Please sign in to comment.