Created
December 13, 2019 10:27
-
-
Save illucent/c3be9da2b87d79a22112436b93642c9b to your computer and use it in GitHub Desktop.
grub_notes
This file contains 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
# -*- coding: utf-8 -*- | |
# grub2-editenv /boot/grub2/grubenv create | |
# dracut --regenerate-all -fv && grub2-mkconfig -o /boot/grub2/grub.cfg | |
# https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault | |
# https://utcc.utoronto.ca/~cks/space/blog/linux/Fedora30GrubBLSGotcha | |
# https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/ | |
# ## Backup old initramfs nouveau image ## | |
# mv -fu /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)_orig.img | |
## Create new initramfs image ## | |
# dracut -vf --install "/usr/lib/firmware/radeon/*" --kver $(uname -r) | |
# dracut /boot/initramfs-$(uname -r).img $(uname -r) && grub2-mkconfig -o /boot/grub2/grub.cfg | |
# | |
GRUB_TIMEOUT=5 | |
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" | |
GRUB_DEFAULT=saved | |
GRUB_SAVEDEFAULT=true | |
GRUB_DISABLE_SUBMENU=true | |
# Uncomment to enable BadRAM filtering, modify to suit your needs | |
# This works with Linux (no patch required) and with any kernel that obtains | |
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) | |
# GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" | |
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux | |
#GRUB_DISABLE_LINUX_UUID=true | |
# GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet" | |
# Uncomment to disable generation of recovery mode menu entries | |
GRUB_TERMINAL_OUTPUT="console" | |
GRUB_TERMINAL="gfxterm" | |
# The resolution used on graphical terminal | |
# note that you can use only modes which your graphic card supports via VBE | |
# you can see them in real GRUB with the command `vbeinfo' | |
GRUB_GFXMODE="auto" | |
#GRUB_GFXMODE=auto | |
# GRUB_GFXMODE=1280x1024 | |
# GRUB_GFXPAYLOAD_LINUX=keep | |
# GRUB_GFXMODE=1280x1024 | |
GRUB_GFXPAYLOAD_LINUX=1280x1024 | |
# The resolution used on graphical terminal | |
# note that you can use only modes which your graphic card supports via VBE | |
# you can see them in real GRUB with the command `vbeinfo' | |
GRUB_COLOR_NORMAL="light-blue/black" | |
GRUB_COLOR_HIGHLIGHT="light-cyan/blue" | |
# GRUB_CMDLINE_LINUX="resume=/dev/mapper/luks-414365ea-7a5a-47b0-a099-7d793174ed33 rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 selinux=0 nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect plymouth.enable=0 radeon.modeset=1 radeon.gartsize=-1 fsck.repair=yes fastboot acpi=off splash rhgb quiet" | |
# GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 pnp.debug=1 loglevel=9 log_buf_len=10M printk.always_kmsg_dump=y printk.time=y mminit_loglevel=0 memory_corruption_check=1 fbcon=scrollback:4096k fbcon=font:ProFont6x11 apic=debug earlyprintk=vga dynamic_debug.verbose=1 dyndbg=\"file arch/x86/kernel/apic/* +pflmt ; file drivers/video/* +pflmt ; file drivers/input/* -pflmt ; file drivers/acpi/* -pflmt ; file net/netfilter/* +pflmt\" i8042.debug acpi_backlight=vendor nohz=on rcu_nocbs=1-3 pcie_aspm=force radeon.audio=0 radeon.lockup_timeout=120000 radeon.test=0 radeon.agpmode=-1 radeon.benchmark=0 radeon.tv=0 radeon.hard_reset=1 radeon.aspm=1 radeon.msi=1 radeon.pcie_gen2=-1 radeon.no_wb=1 radeon.r4xx_atom=0 radeonfb radeon.fastfb=1 radeon.modeset=1 radeon.dpm=1 radeon.runpm=1 radeon.dynclks=0 slub_debug=U noefi CPUunderclocking systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=true " | |
# GRUB_CMDLINE_LINUX="resume=/dev/mapper/luks-414365ea-7a5a-47b0-a099-7d793174ed33 rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 selinux=0 nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect radeon.modeset=1 plymouth.enable=0 memory_corruption_check=1 usbcore.autosuspend=-1 pcie_aspm=force radeon.audio=1 radeon.test=0 radeon.agpmode=-1 radeon.benchmark=0 radeon.tv=0 radeon.hard_reset=1 radeon.aspm=1 radeon.msi=1 radeon.pcie_gen2=-1 radeon.no_wb=1 radeonfb radeon.fastfb=1 radeon.modeset=1 radeon.dpm=1 radeon.runpm=1 radeon.dynclks=0 random.trust_cpu=on zswap.enabled=1 zswap.max_pool_percent=20 zswap.zpool=z3fold zswap.compressor=lz4 fsck.repair=yes cgroup_disable=cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,pids cgroup_no_v1=all libahci.ignore_sss=1 fsck.mode=force acpi_osi=Linux fastboot iommu=soft amd_iommu=off splash rhgb quiet" | |
# GRUB_CMDLINE_LINUX="resume=UUID=d954182a-c454-47a8-963c-b4e3b49b658c rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 selinux=0 systemd.unified_cgroup_hierarchy=1 systemd.legacy_systemd_cgroup_controller=yes nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect plymouth.enable=0 memory_corruption_check=1 usbcore.autosuspend=-1 zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4 fsck.repair=yes fsck.mode=force acpi_osi=Linux amdgpu.cik_support=1 amdgpu.dc=1 splash rhgb quiet LANG=en_GB.UTF-8" | |
# GRUB_CMDLINE_LINUX="resume=UUID=d954182a-c454-47a8-963c-b4e3b49b658c rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 selinux=0 systemd.unified_cgroup_hierarchy=1 systemd.legacy_systemd_cgroup_controller=yes nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect radeon.modeset=1 plymouth.enable=0 memory_corruption_check=1 usbcore.autosuspend=-1 pcie_aspm=force radeon.audio=1 radeon.agpmode=-1 radeon.benchmark=0 radeon.tv=0 radeon.hard_reset=1 radeon.aspm=1 radeon.msi=1 radeon.pcie_gen2=-1 radeon.no_wb=1 radeon.fastfb=1 radeon.dpm=1 radeon.runpm=1 zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4 fsck.repair=yes libahci.ignore_sss=1 fsck.mode=force acpi_osi=Linux iommu=soft amd_iommu=off radeon.cik_support=0 amdgpu.cik_support=1 amdgpu.dc=1 splash rhgb quiet LANG=en_GB.UTF-8" | |
# GRUB_CMDLINE_LINUX="resume=UUID=d954182a-c454-47a8-963c-b4e3b49b658c rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 selinux=0 systemd.unified_cgroup_hierarchy=1 systemd.legacy_systemd_cgroup_controller=yes nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect radeon.modeset=1 plymouth.enable=0 memory_corruption_check=1 usbcore.autosuspend=-1 radeon.audio=0 zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4 fsck.repair=yes libahci.ignore_sss=1 fsck.mode=force splash pci=nomsi radeon.agpmode=8 rhgb quiet LANG=en_GB.UTF-8" | |
# GRUB_CMDLINE_LINUX="resume=UUID=d954182a-c454-47a8-963c-b4e3b49b658c rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 selinux=0 nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect plymouth.enable=0 memory_corruption_check=1 zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4 pcie_aspm=force radeon.audio=1 radeon.agpmode=-1 radeon.benchmark=0 radeon.tv=0 radeon.hard_reset=1 radeon.aspm=1 radeon.msi=1 radeon.pcie_gen2=-1 radeon.no_wb=1 radeon.fastfb=1 radeon.dpm=1 radeon.runpm=1 radeon.cik_support=0 amdgpu.cik_support=0 amdgpu.dc=0 fsck.repair=yes radeon.modeset=0 fsck.mode=force nomodeset usbcore.autosuspend=-1 radeon.audio=0 processor.nocst=1 acpi_enforce_resources=lax splash rhgb" | |
# GRUB_CMDLINE_LINUX="resume=UUID=d954182a-c454-47a8-963c-b4e3b49b658c rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 selinux=0 nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect plymouth.enable=0 memory_corruption_check=1 zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4 pcie_aspm=force radeon.audio=0 radeon.modeset=0 nomodeset fsck.repair=yes fsck.mode=force usbcore.autosuspend=-1 processor.nocst=1 acpi_enforce_resources=lax splash rhgb" | |
GRUB_CMDLINE_LINUX="resume=UUID=d954182a-c454-47a8-963c-b4e3b49b658c rd.luks.uuid=luks-837e4039-aaab-449c-9cce-3c56c771448c rd.luks.uuid=luks-414365ea-7a5a-47b0-a099-7d793174ed33 LANG=en_GB.UTF-8 selinux=0 nowatchdog transparent_hugepage=never crashkernel=auto raid=noautodetect plymouth.enable=0 memory_corruption_check=1 zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4 fsck.repair=yes fsck.mode=force acpi_enforce_resources=lax pci=nomsi amd_iommu=pt acpi_osi=! acpi_osi=Linux pcie_port_pm=off radeon.audio=0 radeon.dpm=1 radeon.modeset=1 amdgpu.vm_fragment_size=9 intel_idle.max_cstate=0 processor.max_cstate=1 usbcore.autosuspend=-1 idle=poll splash rhgb" | |
# GRUB_CMDLINE_LINUX_DEFAULT="video=1280x1024" | |
GRUB_CMDLINE_LINUX_DEFAULT="" | |
# Uncomment to enable BadRAM filtering, modify to suit your needs | |
# This works with Linux (no patch required) and with any kernel that obtains | |
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) | |
# GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" | |
# | |
GRUB_DISABLE_RECOVERY="false" | |
GRUB_ENABLE_BLSCFG="true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment