Hi, Holger Wansing <li...@wansing-online.de> wrote: > Hi, > > I'm looking to work on this long standing bug against debian-faq: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599018 > > I would appreciate a review, since the bugreport is more than 5 years old: > is this all still relevant/true ? > > > Quoting the bug submitter: > > 10.1: The libc kernel headers are no longer in libc6-dev; they're in > linux-libc-dev. > > 10.2: The recommended way to compile the kernel into a Debian package is > now to just run "make pkg-deb" after configuring it. kernel-package is > no longer used for the official kernel packages, and tends to be overly > complex. > > 10.4: modconf and /etc/modules.conf are deprecated and shouldn't > actually get used anymore. The list of modules at boot-time is still > /etc/modules but it rarely needs to be touched. Module-specific > configuration is now done in /etc/modprobe.d.
Since the patch provided with the bugreport does no longer apply cleanly, because some involved text has already been removed, I prepared a new patch, attached. Holger -- ============================================================ Created with Sylpheed 3.5.0 under D E B I A N L I N U X 8 . 0 " J E S S I E " . Registered Linux User #311290 - https://linuxcounter.net/ ============================================================
Index: kernel.sgml =================================================================== --- kernel.sgml (Revision 11168) +++ kernel.sgml (Arbeitskopie) @@ -11,7 +11,7 @@ most recent <em>stable</em> releases of the <strong>kernel</strong> headers. If you happen to need to compile a program with kernel headers newer than the ones from the stable branch, then you should either upgrade the package -containing the headers (<package/libc6-dev/), or use the new headers from an +containing the headers (<package/linux-libc-dev/), or use the new headers from an unpacked tree of the newer kernel. That is, if the kernel sources are in <file>/usr/src/linux</file>, then you should add <tt>-I/usr/src/linux/include/</tt> to your command line when compiling. @@ -20,15 +20,11 @@ kernels? <p>Users who wish to (or must) build a custom kernel are encouraged to -download the package <package/kernel-package/. This package contains -the script to build the kernel package, and provides the capability to -create a Debian <package>linux-image-<var>version</var></package> -package just by running the command - <example>make-kpkg --initrd kernel_image</example> -in the top-level kernel source directory. -Help is available by executing the command - <example>make-kpkg --help</example> -and through the manual page <manref name="make-kpkg" section="1">. +use the Debian package target included with recent versions of the kernel +build system. After configuring the kernel, simply run the following command: + <example>make deb-pkg</example> +The new kernel package will be created in the directory one level above the +kernel source tree, and it may be installed using <tt>dpkg -i</tt>. <p>Users must separately download the source code for the most recent kernel (or the kernel of their choice) from their favorite Linux archive @@ -36,9 +32,16 @@ is available (where <var>version</var> stands for the kernel version). -<p>Detailed instructions for using the <package/kernel-package/ package -are given in the file <file>/usr/share/doc/kernel-package/README.gz</file>. +<sect id="modules">What special provisions does Debian provide to deal with + modules? +<p>A configuration file containing modules to be manually loaded at boot time +is kept at <file>/etc/modules</file>. However, editing this file is rarely needed. + +<p>Other module configuration is kept in the <file>/etc/modprobe.d/</file> +directory. More information about the format of those files can be found in +the <manref name="modprobe.conf" section="5"> manual page. + <sect id="removeoldkernel">Can I safely de-install an old kernel package, and if so, how? @@ -50,3 +53,8 @@ <example>dpkg --purge linux-image-<var>NNN</var></example> (replace <var>NNN</var> with your kernel version and revision number, of course) + +<sect id="moreinfo">Where can I get more information about Linux packages for Debian? + +<p>Further information is maintained in the <url name="Debian Linux Kernel +Handbook" id="http://kernel-handbook.alioth.debian.org/">.