]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: create early cpio dir for acpi tables
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Jan 2014 14:26:43 +0000 (15:26 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 24 Jan 2014 14:26:43 +0000 (15:26 +0100)
dracut.sh

index 6d0e84ec8e6f5f2f1629495c4639f4b61886a25c..2142e2df1613c29faf8e39b5e00287b8291078f0 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -798,7 +798,7 @@ readonly initdir="$(mktemp --tmpdir="$TMPDIR/" -d -t initramfs.XXXXXX)"
     exit 1
 }
 
-if [[ $early_microcode = yes ]]; then
+if [[ $early_microcode = yes ]] || ( [[ $acpi_override = yes ]] && [[ -d $acpi_table_dir ]] ); then
     readonly early_cpio_dir="$(mktemp --tmpdir="$TMPDIR/" -d -t early_cpio.XXXXXX)"
     [ -d "$early_cpio_dir" ] || {
         printf "%s\n" "dracut: mktemp --tmpdir='$TMPDIR/' -d -t early_cpio.XXXXXX failed." >&2