Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11600 Feature request: official support for custom kernel configs
  3. FL-11925

[next][docs] Advanced User Documentation for `savedconfig` support in kernel ebuild

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      We need to add some language to the Wiki describing how to use the `savedconfig` support in the kernel ebuild.  Here's the current procedure:

      1. turn off `USE="binary"` and everything depending on it like `USE="-custom-cflags -logo -binary -luks -lvm" etc., by setting it in `/etc/portage/package.use/kernel` or similar:
      $ echo "sys-kernel/debian-sources -binary -custom-cflags -logo -lvm -luks" | tee -a /etc/portage/package.use/debian-sources
      
      1. turn on `USE="savedconfig"` as in step 1:
      $ echo "sys-kernel/debian-sources savedconfig" | tee -a /etc/portage/package.use/debian-sources
      1. install the sources but don't build the kernel (note that `N` corresponds to a number in the `eselect kernel list`:
      $ emerge debian-sources
      $ eselect kernel list
      $ eselect kernel N
      1. manually build the kernel and install the modules (important to do this before building the initramfs):
      $ cd /usr/src/linux
      $ make -j$(nproc) -l$(nproc)
      $ make modules_install
      1. manually build the initramfs with `genkernel` (if using `lvm`, `luks`, `mdadm` for `rootfs`, add options for them to the `genkernel` arguments):
      genkernel initramfs --lvm --luks
      1. finally, install the kernel:
      make install
      1. now update GRUB; after this it is safe to reboot if there are no errors:
      ego boot update

       

            Unassigned Unassigned
            cuantar cuantar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: