aboutsummaryrefslogtreecommitdiffstats
path: root/kern.1 (unfollow)
Commit message (Collapse)AuthorLines
2020-06-04Use configuration file under /boot instead of /proc/config.gzWynn Wolf Arbor-4/+3
kern(1) has been using /proc/config.gz as the source of the currently running kernel's config since its initial commit. Whilst this location is convenient because of its static nature, it does need a specific kernel option, IKCONFIG_PROC, to be set. Furthermore, it introduces a dependency on gzip(1) to decompress the file on the fly. Consequently, we need to stream gzip's output to commands or save it in a temporary file to access it neatly. Since Gentoo's default install script for the kernel, installkernel(8), places each kernel's configuration file in /boot, we can use this location to retrieve the currently running kernel's configuration instead and work around all of the above limitations. Of course we need to make sure that /boot is mounted before we try accessing any configuration files on there. We use the already existing code from install_kernel() for that.
2020-05-16Mention the base template in kern.1Wynn Wolf Arbor-2/+3
Since fragment merging will fail if the base template does not exist, make sure to mention it in the manual.
2020-05-05Add kern(1) and kernfrag(7) manualsWynn Wolf Arbor-0/+147