Skip to content

Kernel parameters

root

  • Specifies the device of the decrypted root file system
root=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
root=LABEL=foo
root=/dev/sda1
root=/dev/mapper/foo # mapper from a decrypted drive
root=/dev/volumegroup/logicalvolume # lLVM

resume

  • Descrypted swap filesystem used for suspend to disk
resume=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

rootflags

  • This parameter sets the mount option string for the root filesystem (same as in fstab)
# BTRFS setup
rootflags=subvol=@

rw/ro

  • Mount the root fs as read-write or read-only
  • rw is the default
rw
ro

BOOT_IMAGE

BOOT_IMAGE=/@/boot/vmlinuz-linux

pcie_ports

pcie_ports=native # full PCIe capabilities
pcie_ports=compat # limited PCIe capabilities
pcie_ports=auto # capabilities depending on the bios

pci

pci=
  realloc,
  nocrs,
  assign-busses,
  hpbussize=0x33,
  hpiosize=4M, # IO window [default: 256 bytes]
  hpmemsize=256M, # MMIO and MMIO_PREF windows [default: 2MB] prefetchable + non-prefetchable MMIO windows
  hpmmiosize=256M, # MMIO window [default: 2MB] - non-prefetchable MMIO window (reserve hotplug bridge memory for non-prefetchable memory)
  hpmmioprefsize=256M # MMIO_PREF window [default: 2MB] - prefetchable MMIO window (reserve hotplug bridge memory for prefetchable memory)

intel_iommu

intel_iommu=on

iommu

  • Device passthrough
iommu=on
iommu=pt # pass through only devices that are supported

iommu.passthrough

iommu.passthrough=1

nowatchdog

  • Disable watchdog timers. It's not necessary for personal laptops
nowatchdog