You are not logged in.

#1 2024-12-23 16:49:00

StopkaPeter
Member
From: Slovakia
Registered: 2019-05-20
Posts: 31

Purpose has different paths for kernel cmdline

While reading the Arch Wiki and other sources, I noticed there are four paths where and how to set the kernel cmdline:

  • /etc/cmdline

  • /etc/cmdline.d/*.conf

  • /etc/kernel/cmdline

  • /etc/kernel/cmdline.d/*.conf

If I read correctly and understand the informations correctly, /etc/cmdline is a single configuration file and has a higher priority than the configuration files in /etc/cmdline.d/*.conf, where all the files are merged into one configuration during the creation of the initramfs or UKI. Then, /etc/kernel/cmdline and /etc/kernel/cmdline.d/*.conf are essentially the same thing. So, what is the purpose of this separation?

Last edited by StopkaPeter (2024-12-23 21:56:31)

Offline

#2 2024-12-23 17:04:30

corpest
Member
Registered: 2024-12-21
Posts: 10

Re: Purpose has different paths for kernel cmdline

Not really if this is the true reason, but I'd say it's about maintenance and organization, it's also probably just more flexible.


It requires more courage to suffer than to die.

Offline

Board footer

Powered by FluxBB