InitrdInterface (original) (raw)

Back to systemd




This page has been obsoleted and replaced: https://systemd.io/INITRD_INTERFACE/.




The initrd Interface of systemd

systemd supports both initrd and initrd-less boots. If an initrd is used it is a good idea to pass a few bits of runtime information from the initrd to systemd in order to avoid duplicate work and to provide performance data to the administrator. In this page we attempt to roughly describe the interfaces that exist between the initrd and systemd. These interfaces are currently used by dracut and the ?ArchLinux initrds.

Oh, and one last question before closing: instead of implementing these features in your own distro's initrd, may I suggest just using Dracut instead? It's all already implemented there!

Using systemd inside an initrd

It is also possible and recommended to implement the initrd itself based on systemd. Here are a few terse notes: