]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Correct path for UEFI stub
authorHarald Hoyer <harald@redhat.com>
Mon, 20 Mar 2017 10:41:07 +0000 (11:41 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 20 Mar 2017 10:43:04 +0000 (11:43 +0100)
respect any $prefix given to the systemd installation

https://github.com/dracutdevs/dracut/pull/196

dracut.8.asc
dracut.asc
dracut.sh

index 4ab0872f8bc2262445662786facb531c5dfe574d..ca16918981564d60c5e415ce625f75e31e8f3a23 100644 (file)
@@ -498,8 +498,8 @@ will not be able to boot.
 **--uefi-stub _<FILE>_**::
     Specifies the UEFI stub loader, which will load the attached kernel, initramfs and
     kernel command line and boots the kernel. The default is
-    _/lib/systemd/boot/efi/linux<EFI-MACHINE-TYPE-NAME>.efi.stub_
-    or _/usr/lib/gummiboot/linux<EFI-MACHINE-TYPE-NAME>.efi.stub_
+    _$prefix/lib/systemd/boot/efi/linux<EFI-MACHINE-TYPE-NAME>.efi.stub_
+    or _$prefix/lib/gummiboot/linux<EFI-MACHINE-TYPE-NAME>.efi.stub_
 
 **--kernel-image _<FILE>_**::
     Specifies the kernel image, which to include in the UEFI executable. The default is
index b047a3376dacb31fe2fc52529459e9bad9409ec1..f2470e04598bc3311497d246cd82d50b34fdfa78 100644 (file)
@@ -132,7 +132,7 @@ The following steps are executed during a shutdown:
 
 * systemd switches to the shutdown.target
 * systemd starts
-  /lib/systemd/system/shutdown.target.wants/dracut-shutdown.service
+  $prefix/lib/systemd/system/shutdown.target.wants/dracut-shutdown.service
 * dracut-shutdown.service executes /usr/lib/dracut/dracut-initramfs-restore
   which unpacks the initramfs to /run/initramfs
 * systemd finishes shutdown.target
index a94401f67ff8223d75bcb0cecf9569c1b907adc7..788e52bf83d0f9448dcb514c130356f6eab7cc0f 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1029,7 +1029,7 @@ if [[ ! $print_cmdline ]]; then
 
         if ! [[ -s $uefi_stub ]]; then
             for uefi_stub in \
-                "/lib/systemd/boot/efi/linux${EFI_MACHINE_TYPE_NAME}.efi.stub" \
+                "${systemdutildir}/boot/efi/linux${EFI_MACHINE_TYPE_NAME}.efi.stub" \
                     "/usr/lib/gummiboot/linux${EFI_MACHINE_TYPE_NAME}.efi.stub"; do
                 [[ -s $uefi_stub ]] || continue
                 break