build-kernel: Avoid creating /lib directory

In a "merged-usr" system, `/lib` is a symlink to `/usr/lib`.  When
installing *sys-apps/systemd*, Portage checks to ensure this is the
case.  If this happens after `make modules_install` is run, `/lib` is
a directory, which causes the installation to fail.  To avoid this, we
need to explicitly install the modules into `/usr/lib` so that the
symlink can be created later.
master
Dustin 2023-02-13 23:21:37 -06:00
parent 0b1aed0080
commit 5a1b007fd7
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ cd linux
make -C /usr/src/linux O=${PWD} olddefconfig make -C /usr/src/linux O=${PWD} olddefconfig
make -j$(nproc) make -j$(nproc)
kver=$(make -s kernelversion) kver=$(make -s kernelversion)
make modules_install INSTALL_MOD_PATH=/mnt/gentoo make modules_install INSTALL_MOD_PATH=/mnt/gentoo/usr
cd - cd -
printf 'Installing Kernel %s ...\n' "${kver}" printf 'Installing Kernel %s ...\n' "${kver}"