diff --git a/README.md b/README.md index 7571c68..fccbf51 100644 --- a/README.md +++ b/README.md @@ -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/) diff --git a/grub2/grub.cfg b/grub2/grub.cfg index c8908b4..3b08408 100644 --- a/grub2/grub.cfg +++ b/grub2/grub.cfg @@ -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" diff --git a/grub2/inc-cachyos.cfg b/grub2/inc-cachyos.cfg new file mode 100644 index 0000000..2b5be2c --- /dev/null +++ b/grub2/inc-cachyos.cfg @@ -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 diff --git a/grub2/themes/invader/icons/cachyos.png b/grub2/themes/invader/icons/cachyos.png new file mode 100644 index 0000000..03b3c2e Binary files /dev/null and b/grub2/themes/invader/icons/cachyos.png differ diff --git a/icons-original/invader/cachyos.svg b/icons-original/invader/cachyos.svg new file mode 100644 index 0000000..9cf242d --- /dev/null +++ b/icons-original/invader/cachyos.svg @@ -0,0 +1 @@ +