Is the "base" hook needed in mkinitcpio.conf (if using systemd instead of udev)

Moderation Note: Moved from systemd-boot updater

Don't think "base" is needed at least I have removed it?

1 Like

I would advise against removing base - everything before autodetect is mandatory - after is on a per available base.

Can you let us know where this is documented?
Thanks.

https://wiki.archlinux.org/index.php/Mkinitcpio
as well as saying it's needed unless ......
it says "Provides a busybox recovery shell when using systemd hook" not needed as I don't use busybox.

You might need it if something goes wrong during early boot. Base hook enables you to use emergency shell to diagnose and troubleshoot when for example your root partition fails to mount or the like.

1 Like

Systemd hook replaces base, udev and resume hooks. You need either base OR systemd hook but not both. I usually use systemd hook without base hook.

1 Like

I also use systemd hook. I understand that in that case base hook is optional (not needed for boot) but useful (provides recovery shell).

Provides a busybox recovery shell when using systemd hook

1 Like

that was my understanding as well, which is why I left it.

having base doesn't adversely affect anything as far as I can tell

Learning something new - thank you!

Forum kindly sponsored by