You are not logged in.

#1 2016-12-09 22:18:39

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

naive question: why does systemd trigger an initramfs rebuild [SOLVED]

Subject says it all.  A pacman hook triggered a rebuild with 232-4 --> 232-6.  Just wondering why.

Last edited by graysky (2016-12-10 00:21:27)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2016-12-09 22:36:34

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

Doesn't initramfs contain udev, which is provided by this package?

Offline

#3 2016-12-09 23:30:07

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

Because it (systemd package) contains files inside /usr/lib/initcpio, thus triggering the hook:

% grep Target /usr/share/libalpm/hooks/99-linux.hook 
Target = boot/vmlinuz-linux
Target = usr/lib/initcpio/*
% pacman -Qlq systemd|grep usr/lib/initcpio 
/usr/lib/initcpio/
/usr/lib/initcpio/hooks/
/usr/lib/initcpio/hooks/udev
/usr/lib/initcpio/install/
/usr/lib/initcpio/install/systemd
/usr/lib/initcpio/install/udev

Offline

#4 2016-12-09 23:31:52

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

I understand why it is triggered, but it's unclear to me why it's necessary.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2016-12-09 23:53:17

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

"Necessary" is a strong word. Initrds have worked for a long time with outdated udevs, and would continue to work without this hook. However, some noise is generated by people who get concerned that their system reports an old version of udev when they start it. e.g. https://bbs.archlinux.org/viewtopic.php?id=191243

This hook will pacify them, at the very least.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2016-12-10 00:21:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

Thanks for the insight, Wormzy.  Will mark as solved.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2016-12-10 00:36:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

WorMzy wrote:

This hook will pacify them, at the very least.

So would this one. hmm


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2016-12-10 00:42:55

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

This one's slightly less messy. tongue


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2016-12-10 01:00:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: naive question: why does systemd trigger an initramfs rebuild [SOLVED]

There has been at least on occasion where an old udev in the initramfs caused problems, so it makes sense to rebuild it even if you aren't using the systemd hook.

Offline

Board footer

Powered by FluxBB