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

966cef
From 5adc20e4c2575c2a271e01e700a63a0258353870 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