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
About this post
- Posted
- Archived
- Score
- 7 · 100% up
- Kind
- Text
- ID
- 994ed0
2 comments
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.
Awesome! Thank you very much!