On 14/11/2019 21.31, Michael Biebl wrote:
Am 14.11.19 um 20:26 schrieb Sorin Manolache:

I copy the new binaries from
/usr/lib/x86_64-linux-gnu to /lib/x86_64-linux-gnu.

Please don't do that. The only reasonable solution is to remove any
stale libraries you have copied/installed manually.

I was aware of the risks.

The reason why I did it was because I have a custom kernel without initrd and / and /usr are on a different disk partitions. Since systemd needs libs in /usr/lib the system didn't boot. So I've copied the necessary libs from /usr to /lib.

As a side, I think having systemd depend on libraries deployed in /usr is a bad idea. More generally, using tools (e.g. /usr/bin/find) in the pre-mount phase of the boot process that either are deployed in /usr or depend on libs in /usr is, in my opinion, a bad idea.

--
Sorin

Reply via email to