local libraries (home partition) included in initramsfs
Task Info (Flyspray) | |
---|---|
Opened By | Damir Franusic (dfranusic) |
Task ID | 74207 |
Type | Bug Report |
Project | Arch Linux |
Category | Arch Projects |
Version | None |
OS | x86_64 |
Opened | 2022-03-23 09:21:51 UTC |
Status | Assigned |
Assignee | Giancarlo Razzolini (grazzolini) |
Details
Description: mkinitcpio creates initramfs with local libraries (~/.local/lib) included in initramfs-linux.img (lsinitcpio /boot/initramfs-linux.img); this causes kernel panic and you are unable to boot your system. This happens when you install libraries to your home dir and have a custom ld config file (/etc/ld.so.conf.d/99-local.conf) which lists one or more directories from your /home/user directory.
Steps to reproduce:
- install a shared library into your ~/.local/lib
- add ~/.local/lib to /etc/ld.so.conf.d/99-local.conf
- run ldconfig
- run mkinitcpio -P or reinstall your kernel (linux package)
- reboot