From: Thomas Renninger <trenn@suse.de>
To: harald@redhat.com
Cc: initramfs@vger.kernel.org, linux-acpi@vger.kernel.org,
konrad.wilk@oracle.com, Thomas Renninger <trenn@suse.de>
Subject: [PATCH 2/4] dracut: Do not create early_cpio if no suitable microcode exist in hostonly case
Date: Fri, 27 Sep 2013 20:10:38 +0200 [thread overview]
Message-ID: <1380305440-63843-3-git-send-email-trenn@suse.de> (raw)
In-Reply-To: <1380305440-63843-1-git-send-email-trenn@suse.de>
Intel microcodes only exist for very specific family/model/stepping CPUs.
If no microcode gets added, there is no need to create an empty
(only directories) cpio later that gets glued to the initrd.
This also fixes:
*** Constructing GenuineIntel.bin ****
cat: /lib/firmware/intel-ucode/06-3c-03: No such file or directory
in hostonly mode if there is no suitable microcode for the CPU.
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
dracut.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dracut.sh b/dracut.sh
index 0383c7e..618c301 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -1294,12 +1294,15 @@ if [[ $early_microcode = yes ]]; then
dinfo "*** Constructing ${ucode_dest[$idx]} ****"
if [[ $hostonly ]]; then
_src=$(get_ucode_file)
+ if ! [[ -r $_fwdir/$_fw/$_src ]];then
+ break;
+ fi
fi
cat $_fwdir/$_fw/$_src > $_dest_dir/${ucode_dest[$idx]}
+ create_early_cpio="yes"
fi
done
done
- create_early_cpio="yes"
fi
rm -f -- "$outfile"
--
1.7.6.1
next prev parent reply other threads:[~2013-09-27 18:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-27 18:10 [RESEND] Implement ACPI table overriding via initramfs Thomas Renninger
2013-09-27 18:10 ` [PATCH 1/4] dracut: Generlize microcode early cpio usage Thomas Renninger
2013-09-27 18:10 ` Thomas Renninger [this message]
2013-09-27 18:10 ` [PATCH 3/4] dracut: Implement ACPI table overriding Thomas Renninger
[not found] ` <1380305440-63843-1-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org>
2013-09-27 18:10 ` [PATCH 4/4] dracut.conf.5.asc: Add ACPI table override and uncompressed cpio doc Thomas Renninger
2013-10-02 10:56 ` [RESEND] Implement ACPI table overriding via initramfs Harald Hoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1380305440-63843-3-git-send-email-trenn@suse.de \
--to=trenn@suse.de \
--cc=harald@redhat.com \
--cc=initramfs@vger.kernel.org \
--cc=konrad.wilk@oracle.com \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).