naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
ac3a84
From 236e3846e8497f2f7e5c4dfcfc9ff2e922fd02a0 Mon Sep 17 00:00:00 2001
ac3a84
From: Gerd Hoffmann <kraxel@redhat.com>
ac3a84
Date: Tue, 4 Oct 2022 15:01:39 +0200
ac3a84
Subject: [PATCH] systemd-boot man page: add section for virtual machines
ac3a84
ac3a84
(cherry picked from commit 941d418d19397bd20c570729877a5dfa37d762b2)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 man/systemd-boot.xml | 17 +++++++++++++++++
ac3a84
 1 file changed, 17 insertions(+)
ac3a84
ac3a84
diff --git a/man/systemd-boot.xml b/man/systemd-boot.xml
ac3a84
index 0eee532f90..57b66803fa 100644
ac3a84
--- a/man/systemd-boot.xml
ac3a84
+++ b/man/systemd-boot.xml
ac3a84
@@ -525,6 +525,23 @@
ac3a84
     <filename>/etc/kernel/tries</filename> when a boot loader entry is first created.</para>
ac3a84
   </refsect1>
ac3a84
 
ac3a84
+  <refsect1>
ac3a84
+    <title>Using systemd-boot in virtual machines.</title>
ac3a84
+
ac3a84
+    <para>When using qemu with OVMF (UEFI Firmware for virtual machines) the <option>-kernel</option> switch
ac3a84
+    works not only for linux kernels, but for any EFI binary, including sd-boot and unified linux
ac3a84
+    kernels.  Example command line for loading sd-boot on x64:</para>
ac3a84
+
ac3a84
+    <para>
ac3a84
+      <command>qemu-system-x86_64 <replaceable>[ ... ]</replaceable>
ac3a84
+      -kernel /usr/lib/systemd/boot/efi/systemd-bootx64.efi</command>
ac3a84
+    </para>
ac3a84
+
ac3a84
+    <para>systemd-boot will detect that it was started directly instead of being loaded from ESP and will
ac3a84
+    search for the ESP in that case, taking into account boot order information from the hypervisor (if
ac3a84
+    available).</para>
ac3a84
+  </refsect1>
ac3a84
+
ac3a84
   <refsect1>
ac3a84
     <title>See Also</title>
ac3a84
     <para>