]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: fall back to /usr/lib/os-release, if /etc/os-release missing
authorHarald Hoyer <harald@redhat.com>
Thu, 21 May 2015 12:43:14 +0000 (14:43 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 28 May 2015 17:47:37 +0000 (19:47 +0200)
dracut.sh

index 6215b36061f5f0dc8ec12bb5c494382c790501b3..b0b31ec4f513cc5accfb2f5e0570c17f6cf386c2 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1771,6 +1771,7 @@ if [[ $uefi = yes ]]; then
     dinfo "Using UEFI kernel cmdline:"
     dinfo $(< "$uefi_outdir/cmdline.txt")
 
+    [[ -s /usr/lib/os-release ]] && uefi_osrelease="/usr/lib/os-release"
     [[ -s /etc/os-release ]] && uefi_osrelease="/etc/os-release"
 
     objcopy \