1

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?

Tom Hale
  • 28,728
  • 32
  • 139
  • 229
  • 2
    Possible duplicate of [Detect init system using the shell](http://unix.stackexchange.com/questions/18209/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 'SO- stop being evil' 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 03 '17 at 22:26

0 Answers0