Skip to content

Why is udev used in hooks when Arch uses systemd as init?

I'm doing my n-th Arch installation now and I'm wondering - On the mkinitcpio Wiki page, it says if using the systemd init, we have to use the systemd hook where busybox lists 3 different hooks. And despite that, the default mkinitcpio.conf file includes the udev hook instead of the systemd hook.
I want to know if this is ok and doesn't go against the systemd rules and I can totally replace the udev hook with systemd and use sd-encrypt for the encryption hook, or it's ok to use the udev hook and still use sd-encrypt for the encryption hook?

Thanks!

Sources:
Arch Init Process
dm-crypt LUKS on LVM mkinitcpio configuration

7 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
7 · 100% up
Kind
Text
ID
994ed0

Author

23
posts
146
comments
3
media
View profile

2 comments

unknown author1 hidden

On the mkinitcpio Wiki page, it says if using the systemd init, we have to use the systemd hook where busybox lists 3 different hooks.

Just to be clear, it doesn't say you HAVE TO use systemd if using the systemd init. Many people don't use the systemd hook and everything works just fine.

You would benefit from visiting the "discussion" tab for that page. There's a fairly detailed discussion regarding BusyBox vs systemd hooks. The best summary being from one of nl6720's comments: "There's no need to use systemd hooks unless you have a problem with the busybox hooks, or need functionality that busybox hooks don't provide."

Again though, there are lots of details and links there, and you'd be well suited to read them if you'd like to understand it better.

8 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.