exit 1
}
-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
- exit 1
- }
-fi
# clean up after ourselves no matter how we die.
trap '
ret=$?;
dracutfunctions=$dracutbasedir/dracut-functions.sh
export dracutfunctions
+
+
+case "$(arch)" in
+ i686|x86_64)
+ ;;
+ *)
+ early_microcode=no
+ dinfo "Disabling early microcode for $(arch)"
+ ;;
+esac
+
+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
+ exit 1
+ }
+fi
+
+
if (( ${#drivers_l[@]} )); then
drivers=''
while pop drivers_l val; do
dinfo "*** Stripping files done ***"
fi
+
if [[ $early_microcode = yes ]]; then
dinfo "*** Generating early-microcode cpio image ***"
ucode_dir=(amd-ucode intel-ucode)