You are not logged in.

#1 2023-12-29 18:14:52

xerxes_
Member
Registered: 2018-04-29
Posts: 980

[SOLVED] Systemd is updated, Linux kernel not, mkinitcpio hook started

Why if systemd is updated but Linux kernel(s) is/are not, mkinitcpio hook is started and creates kernel image(s) when it is not needed?

Last edited by xerxes_ (2023-12-30 14:08:36)

Offline

#2 2023-12-29 18:31:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,365

Re: [SOLVED] Systemd is updated, Linux kernel not, mkinitcpio hook started

There are systemd files in the initramfs, so it *is* needed.

Offline

#3 2023-12-29 18:41:26

xerxes_
Member
Registered: 2018-04-29
Posts: 980

Re: [SOLVED] Systemd is updated, Linux kernel not, mkinitcpio hook started

Ok, found it, not many, but they are:

-rwxr-xr-x  0 0      0     4319928 sty  1  1970 usr/lib/systemd/libsystemd-shared-255.2-1.so
lrwxrwxrwx  0 0      0          16 sty  1  1970 usr/lib/systemd/systemd-udevd -> /usr/bin/udevadm

Offline

#4 2023-12-29 19:17:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,365

Re: [SOLVED] Systemd is updated, Linux kernel not, mkinitcpio hook started

It's more than that, even without the systemd hook. Grepping for 'systemd' doesn't work, not all files have that word in the filename.

Offline

#5 2023-12-29 20:06:49

xerxes_
Member
Registered: 2018-04-29
Posts: 980

Re: [SOLVED] Systemd is updated, Linux kernel not, mkinitcpio hook started

Some not obvious examples?

Offline

#6 2023-12-29 20:18:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,365

Re: [SOLVED] Systemd is updated, Linux kernel not, mkinitcpio hook started

See `comm -12 <(lsinitcpio /boot/initramfs-linux.img | sed 's|^|/|') <(pacman -Qql systemd)`

Or just read the udev or systemd hooks.

Last edited by Scimmia (2023-12-29 20:21:53)

Offline

#7 2023-12-30 14:07:08

xerxes_
Member
Registered: 2018-04-29
Posts: 980

Re: [SOLVED] Systemd is updated, Linux kernel not, mkinitcpio hook started

Thanks.

Offline

Board footer

Powered by FluxBB