Linux kernel parameter nằm trong Linux kernel

Nhà lá ngày xưa – Hình minh họa

Linux kernel có 1 tùy chọn khi biên dịch là để các Linux kernel parameter nằm trong Linux kernel gọi là Built-in kernel command line.

Built-in kernel command line thích hợp cho hệ thống nhúng nào đó không có nhu cầu thay đổi tham số của Linux kernel của khi chạy.

Hệ thống nhúng (embedded system) nào muốn giấu đi các tham số của Linux kernel để không cho người đời biết hoặc khỏi bị soi mói thì chọn cái này.

Built-in kernel command line

CONFIG_CMDLINE_BOOL:

Allow for specifying boot arguments to the kernel at
build time.  On some systems (e.g. embedded ones), it is
necessary or convenient to provide some or all of the
kernel boot arguments with the kernel itself (that is,
to not rely on the boot loader to provide them.)

To compile command line arguments into the kernel,
set this option to 'Y', then fill in the
boot arguments in CONFIG_CMDLINE.

Systems with fully functional boot loaders (i.e. non-embedded)
should leave this option set to 'N'.

Symbol: CMDLINE_BOOL [=n]
Type  : bool
Defined at arch/x86/Kconfig:2312
  Prompt: Built-in kernel command line
  Location:
    -> Processor type and features
      -> Built-in kernel command line (CMDLINE_BOOL [=n])