03

Consider a Hardcoded
Kernel Cmdline

Set in your kernel config:

CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE_OVERRIDE=y
CONFIG_CMDLINE="root=/dev/sda1"
#EmbeddedLinuxSecurity
The bootloader typically sets the kernel command line. But it’s also possible to hard code the command line in the kernel configuration. That’s what we often do, because it helps to mitigate attacks where the bootloader configuration might be modified. Caveat: Depending on how your update concept works, it may need to alter the kernel command line in the bootloader.
Icon with a waving hand

Get in touch

sigma star gmbh
Eduard-Bodem-Gasse 6, 1st floor
6020 Innsbruck | Austria

sigma star gmbh logo