dracut.sh: fall back to /usr/lib/os-release, if /etc/os-release missing

master
Harald Hoyer 2015-05-21 14:43:14 +02:00
parent c071990c2c
commit 3ac9cdb1c5
1 changed files with 1 additions and 0 deletions

View File

@ -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 \