You are not logged in.

#1 2022-01-20 16:39:47

macaco
Member
From: Graz, Austria
Registered: 2009-03-22
Posts: 101

[SOLVED] Why would I put the systemd hook in mkinitcpio.conf?

This topic is not about trouble shooting but about understanding something.

I had a look into the https://wiki.archlinux.org/title/Mkinitcpio but I am still puzzled of what would be the upside of putting the "systemd" hook. Also, will I have to remove then the "udev", "usr" and resume hook as they will be operated by "systemd"? What are the downsides?

Last edited by macaco (2022-01-23 17:32:41)

Offline

#2 2022-01-23 17:14:14

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,125

Re: [SOLVED] Why would I put the systemd hook in mkinitcpio.conf?

The init used in the initramfs is what determines which hooks are available .

Research differences between busybox init and systemd init.

systemd has more flexibility, but busybox is from a different organisation and has a very good reputation for being reliable and stable.

Since systemd is also used for the 'real' init stage it makes some sense to use it also during initram stage.
However, how will you boot a systemd rescue shell if systemd has issues ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-01-23 17:20:34

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,580
Website

Re: [SOLVED] Why would I put the systemd hook in mkinitcpio.conf?

Lone_Wolf wrote:

However, how will you boot a systemd rescue shell if systemd has issues ?

The rescue shell is only omitted if the base hook is also replaced, which doesn't seem to be the OP's plan.

macaco wrote:

the upside of putting the "systemd" hook

It would allow for the systemd.volatile feature. That's all I can think of.


Jin, Jiyan, Azadî

Offline

#4 2022-01-23 17:32:25

macaco
Member
From: Graz, Austria
Registered: 2009-03-22
Posts: 101

Re: [SOLVED] Why would I put the systemd hook in mkinitcpio.conf?

Thank you for your answers. I already set the systemd hook - no new superpowers, also no new problems - I will keep base however to avoid the issues you hinted at.

Offline

Board footer

Powered by FluxBB