Blame SOURCES/0092-dracut.sh-create-early-cpio-dir-for-acpi-tables.patch

a56a5e
From 0d4bb7ce8928b67a2e835931bc85f317feabd32e Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Fri, 24 Jan 2014 15:26:43 +0100
966cef
Subject: [PATCH] dracut.sh: create early cpio dir for acpi tables
966cef
966cef
---
966cef
 dracut.sh | 2 +-
966cef
 1 file changed, 1 insertion(+), 1 deletion(-)
966cef
966cef
diff --git a/dracut.sh b/dracut.sh
966cef
index ad57218..5586275 100755
966cef
--- a/dracut.sh
966cef
+++ b/dracut.sh
966cef
@@ -719,7 +719,7 @@ readonly initdir="$(mktemp --tmpdir="$TMPDIR/" -d -t initramfs.XXXXXX)"
966cef
     exit 1
966cef
 }
966cef
 
966cef
-if [[ $early_microcode = yes ]]; then
966cef
+if [[ $early_microcode = yes ]] || ( [[ $acpi_override = yes ]] && [[ -d $acpi_table_dir ]] ); then
966cef
     readonly early_cpio_dir="$(mktemp --tmpdir="$TMPDIR/" -d -t early_cpio.XXXXXX)"
966cef
     [ -d "$early_cpio_dir" ] || {
966cef
         printf "%s\n" "dracut: mktemp --tmpdir=\"$TMPDIR/\" -d -t early_cpio.XXXXXX failed." >&2