Created
May 21, 2026 06:27
-
-
Save ormaaj/aa50a2fe03bdc6bb1f247d6692aa39bc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # grub.cfg | |
| function loadModules { | |
| insmod regexp | |
| for x in "$@"; do | |
| if regexp -s 1:y '([^/]+)\.mod$' "$x"; then | |
| if regexp 'test|^tpm$|^regexp$|^[uoea]hci|^gcry_' "$y"; then | |
| continue | |
| else | |
| insmod "$y" | |
| fi | |
| fi | |
| done | |
| unset x | |
| unset y | |
| } | |
| function setupSerial { | |
| for x in "$@"; do | |
| terminfo -u "$x" vt100-color | |
| done | |
| unset x | |
| terminal_input console "$@" | |
| terminal_output gfxterm "$@" | |
| } | |
| default=0 | |
| lang=en | |
| pager=0 | |
| gfxmode=1920x1200x32 | |
| gfxpayload=$gfxmode | |
| insmod all_video | |
| loadModules /boot/grub/x86_64-efi/* | |
| if ! [ "$grub_platform" = emu ]; then | |
| setupSerial serial_efi0 serial_com0 | |
| root=/vol/boot/grub | |
| else | |
| rootfs=$root | |
| fi | |
| menuentry gentoo --class gnu-linux --id gentoo { | |
| search -nl ormaaj3 -s bootfs | |
| search -nl ormaaj2 -s rootfs | |
| probe -l "(${rootfs})" -s rootfslabel | |
| probe -f "(${rootfs})" -s rootfstype | |
| probe --part-uuid "(${rootfs})" -s rootfsuuid | |
| linux \ | |
| "(${bootfs})/vol/boot/vmlinuz-6.12.9-zen+" \ | |
| "root=PARTUUID=${rootfsuuid}" \ | |
| "rootfstype=${rootfstype}" rw \ | |
| rootflags=space_cache=v2,compress=zstd:6,subvol=vol/sys/0 \ | |
| init=/init.bash \ | |
| video=nvidia-drm:mode=1920x1200-32@60 \ | |
| nvidia-drm.modeset=1 \ | |
| devtmpfs.mount=0 \ | |
| secretmem.enable=1 \ | |
| sysctl.kernel.hostname=ormaajbox \ | |
| sysctl.kernel.domainname=ormaaj.org \ | |
| sysctl.kernel.task_delayacct=1 \ | |
| sysctl.kernel.yama.ptrace_scope=1 \ | |
| sysctl.vm.hugetlb_shm_group=1002 \ | |
| sysctl.vm.overcommit_memory=1 \ | |
| sysctl.vm.swappiness=133 \ | |
| zswap.zpool=zsmalloc \ | |
| zswap.compressor=zstd \ | |
| zswap.max_pool_percent=75 \ | |
| zswap.accept_threshold_percent=85 \ | |
| zswap.non_same_filled_pages_enabled=1 \ | |
| zswap.same_filled_pages_enabled=1 \ | |
| zswap.shrinker_enabled=1 \ | |
| zswap.enabled=1 \ | |
| kvm-intel.nested=1 \ | |
| iommu.strict=0 \ | |
| iommu.passthrough=1 \ | |
| console_msg_format=syslog \ | |
| hardened_usercopy=off \ | |
| fw_devlink=on \ | |
| intel_iommu=on \ | |
| intel_pstate=active \ | |
| transparent_hugepage=always \ | |
| thp_anon=8kB,16kB,32kB,64kB,128kB,256kB,512kB,1024kB,2048kB:inherit \ | |
| transparent_hugepage_shmem=always \ | |
| thp_shmem=8kB,16kB,32kB,64kB,128kB,256kB,512kB,1024kB,2048kB:inherit \ | |
| hugetlb_free_vmemmap=1 \ | |
| default_hugepagesz=2M \ | |
| intremap=on \ | |
| panic=10 \ | |
| randomize_kstack_offset=1 | |
| # mitigations=off | |
| initrd "(${bootfs})/vol/boot/intel-uc.img" | |
| } | |
| # vim: set ft=bash fenc=utf-8 ff=unix ts=4 noet : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment