|
|
712866 |
From ebc7f823c0013dfe7fcefe82db48bf4832f5dcec Mon Sep 17 00:00:00 2001
|
|
|
712866 |
From: Thomas Renninger <trenn@suse.de>
|
|
|
712866 |
Date: Fri, 27 Sep 2013 20:10:39 +0200
|
|
|
712866 |
Subject: [PATCH] dracut: Implement ACPI table overriding
|
|
|
712866 |
|
|
|
712866 |
An example config file for this feature could be:
|
|
|
712866 |
|
|
|
712866 |
/etc/dracut.conf.d/03-acpi-override.conf
|
|
|
712866 |
|
|
|
712866 |
with this content:
|
|
|
712866 |
acpi_override="yes"
|
|
|
712866 |
acpi_table_dir="/etc/dracut.conf.d/acpi_tables"
|
|
|
712866 |
|
|
|
712866 |
Then all files ending with *.aml will be put into the early cpio
|
|
|
712866 |
(kernel/firmware/acpi) and will be used to replace the BIOS provided tables
|
|
|
712866 |
if the kernel supports this feature.
|
|
|
712866 |
|
|
|
712866 |
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
|
|
712866 |
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
|
712866 |
---
|
|
|
712866 |
dracut.sh | 11 +++++++++++
|
|
|
712866 |
1 file changed, 11 insertions(+)
|
|
|
712866 |
|
|
|
712866 |
diff --git a/dracut.sh b/dracut.sh
|
|
|
5c6c2a |
index e43227e8..b4b3e13d 100755
|
|
|
712866 |
--- a/dracut.sh
|
|
|
712866 |
+++ b/dracut.sh
|
|
|
712866 |
@@ -1337,6 +1337,17 @@ if [[ $early_microcode = yes ]]; then
|
|
|
712866 |
done
|
|
|
712866 |
fi
|
|
|
712866 |
|
|
|
712866 |
+if [[ $acpi_override = yes ]] && [[ -d $acpi_table_dir ]]; then
|
|
|
712866 |
+ dinfo "*** Packaging ACPI tables to override BIOS provided ones ***"
|
|
|
712866 |
+ _dest_dir="$early_cpio_dir/d/kernel/firmware/acpi"
|
|
|
712866 |
+ mkdir -p $_dest_dir
|
|
|
712866 |
+ for table in $acpi_table_dir/*.aml; do
|
|
|
712866 |
+ dinfo " Adding ACPI table: $table"
|
|
|
712866 |
+ cp $table $_dest_dir
|
|
|
712866 |
+ create_early_cpio="yes"
|
|
|
712866 |
+ done
|
|
|
712866 |
+fi
|
|
|
712866 |
+
|
|
|
712866 |
rm -f -- "$outfile"
|
|
|
712866 |
dinfo "*** Creating image file ***"
|
|
|
712866 |
if [[ $create_early_cpio = yes ]]; then
|