This Arch wiki page says:

If you are using a systemd based initrd, you must pass: rd.luks.options=discard

How do I query the initrd mini-shell to find out if I am running a systemd-based initrd?

What are the other possible types of initrd?

  • 2
    Possible duplicate of Detect init system using the shell – Mark Stosberg Jan 31 '17 at 21:08
  • 2
    @MarkStosberg No, the initrd/initramfs is a rather different context. The other question applies to a system that has already booted. – Gilles Jan 31 '17 at 23:05
  • If you used the systemd hook when creating your initramfs with mkinitcpio that will install a basic systemd setup in your initramfs - that is a systemd-based initramfs (or initrd). As to how you determine that from the minimalist shell - I have no arch setup here right now, I guess if the systemctl binary is present then you're on a systemd-based initrd – don_crissti Feb 3 '17 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.