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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The supported `boot/iso/` sub-directories (in alphabetical order) are :
* [`arch`](https://archlinux.org/)
* [`artix`](https://artixlinux.org/)
* [`bodhi`](https://www.bodhilinux.com/)
* [`cachyos`](https://cachyos.org/)
* [`calculate`](https://wiki.calculate-linux.org/desktop)
* ~~[`centos`](https://www.centos.org/)~~ - _Live was discontinued_
* [`clonezilla`](https://clonezilla.org/)
Expand Down
6 changes: 6 additions & 0 deletions grub2/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ if any_exists ${isopath}/bodhi/bodhi-*.iso; then
}
fi

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

if any_exists ${isopath}/calculate/cl*.iso; then
menuentry "Calculate Linux >" --class calculate {
configfile "${prefix}/inc-calculate.cfg"
Expand Down
37 changes: 37 additions & 0 deletions grub2/inc-cachyos.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# CachyOS
function add_menu_desktop {
isofile="$1"

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

function add_menu_handheld {
isofile="$1"

regexp \
--set 1:isoname \
--set 2:version \
"^${isopath}/cachyos/(cachyos-handheld-linux-([^-]+)\.iso)\$" "${isofile}"
menuentry "CachyOS Handheld ${version}" "${isofile}" "${isoname}" --class cachyos {
set isofile=$2
set isoname=$3
use "${isoname}"
loop $isofile
linux (loop)/arch/boot/x86_64/vmlinuz-linux-cachyos-deckify img_dev=/dev/disk/by-uuid/${rootuuid} img_loop="${isofile}" earlymodules=loop
initrd (loop)/arch/boot/x86_64/initramfs-linux-cachyos-deckify.img
}
}

for_each_sorted add_menu_desktop "$isopath"/cachyos/cachyos-desktop-linux-*.iso
for_each_sorted add_menu_handheld "$isopath"/cachyos/cachyos-handheld-linux-*.iso
Binary file added grub2/themes/invader/icons/cachyos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons-original/invader/cachyos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.