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

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