-
Sub-task
-
Resolution: Unresolved
-
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:
- 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
- turn on `USE="savedconfig"` as in step 1:
$ echo "sys-kernel/debian-sources savedconfig" | tee -a /etc/portage/package.use/debian-sources
- 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
- 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
- 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
- finally, install the kernel:
make install
- now update GRUB; after this it is safe to reboot if there are no errors:
ego boot update