Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small note about rc.conf and kld_list #185

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions documentation/content/en/books/handbook/x11/_index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ To install the package execute the following command:
....
====

[TIP]
====
If you're unfamiliar with the `/etc/rc.conf` file and the `kld_list` option, then checkout the link:https://man.freebsd.org/cgi/man.cgi?rc.conf[`rc.conf`] manpage and search for `kld_list`. Given the importance of this flag, it's important you make yourself familiar with its format in case you need to load multiple kernel modules in the future.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you're unfamiliar with the `/etc/rc.conf` file and the `kld_list` option, then checkout the link:https://man.freebsd.org/cgi/man.cgi?rc.conf[`rc.conf`] manpage and search for `kld_list`. Given the importance of this flag, it's important you make yourself familiar with its format in case you need to load multiple kernel modules in the future.
If you're unfamiliar with the [.filename]#/etc/rc.conf# file and the `kld_list` variable, then see the man:rc.conf[5] manual page and search for _kld_list_.
If ever you're guided to _add_ or _create_ a `kld_list` line: take care to not create two or more lines. If multiple kernel modules are required, you must list them in a single line (as explained in the manual page).

Copy link
Member

@bsdimp bsdimp May 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As described in the link:https://man.freebsd.org/cgi/man.cgi?rc.conf[`rc.conf`] manpage, `kld_list` should be specified only once with all the modules to load. Options in the `/etc/rc.conf` file specified multiple times override prior values rather than add to them. Sometimes instructions guide the user to add a `kld_list` option without spelling out that new values should be appended to the old instead of adding multiple lines.

Is my suggestion (though github is rendering it in a way that's ugly, sorry. The original says the word important too many time, and doesn't present at least a gloss of the most important thing: don't have multiple lines specifying the same option. I'm unsure if it should include 'search for it' or not (I opted not in my suggestion).

====

[[x-configuration-amd]]
=== AMD(R)

Expand Down