Add a new entry(nvme0n1) in Systemd-Boot(nvme1n1)

Here’s my idea for adding the “Archlinux” entries.
However, I don’t know how to add the punctuation; currently, I know it’s not correct.

  # Bootloader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = false;
  boot.loader.systemd-boot.extraEntries 
    { "arch.conf" = ''
      tittle	Arch Linux (linux)
      linux	/vmlinuz-linux
      initrd	/initramfs-linux.img
      options	root=/dev/rootvg/rootlv rw
    "; }
    { "arch-fallback.conf" = "
      title	Arch Linux (fallback initramfs)
      linux	/vmlinuz-linux
      initrd	/initramfs-linux-fallback.img
      options	root=/dev/rootvg/rootlv rw
    "; }

You’re mixing single and double quotes all over the place.

But also, the title of this thread makes it sound like you want to boot an OS from a different drive using systemd-boot? That’s not possible. systemd-boot doesn’t have the ability to boot a kernel that’s on a completely different drive.

1 Like