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