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
parent
0b1aed0080
commit
5a1b007fd7
|
@ -16,7 +16,7 @@ cd linux
|
|||
make -C /usr/src/linux O=${PWD} olddefconfig
|
||||
make -j$(nproc)
|
||||
kver=$(make -s kernelversion)
|
||||
make modules_install INSTALL_MOD_PATH=/mnt/gentoo
|
||||
make modules_install INSTALL_MOD_PATH=/mnt/gentoo/usr
|
||||
cd -
|
||||
|
||||
printf 'Installing Kernel %s ...\n' "${kver}"
|
||||
|
|
Loading…
Reference in New Issue