[arch-releng] [PATCH 1/1] concatenate initramfs images for early microcode update

Christian Hesse list at eworm.de
Wed Oct 29 15:01:04 UTC 2014


Dave Reisner <d at falconindy.com> on Wed, 2014/10/29 10:23:
> On Wed, Oct 29, 2014 at 03:02:38PM +0100, list at eworm.de wrote:
> > From: Christian Hesse <mail at eworm.de>
> > 
> > https://www.kernel.org/doc/Documentation/x86/early-microcode.txt
> > ---
> >  configs/releng/build.sh | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/configs/releng/build.sh b/configs/releng/build.sh
> > index 07ff911..8b6beee 100755
> > --- a/configs/releng/build.sh
> > +++ b/configs/releng/build.sh
> > @@ -90,7 +90,7 @@ make_customize_airootfs() {
> >  # Prepare kernel/initramfs ${install_dir}/boot/
> >  make_boot() {
> >      mkdir -p ${work_dir}/iso/${install_dir}/boot/${arch}
> > -    cp ${work_dir}/${arch}/airootfs/boot/archiso.img
> > ${work_dir}/iso/${install_dir}/boot/${arch}/archiso.img
> > +    cat ${work_dir}/${arch}/airootfs/boot/intel-ucode.img
> > ${work_dir}/${arch}/airootfs/boot/archiso.img >
> > ${work_dir}/iso/${install_dir}/boot/${arch}/archiso.img
> 
> Does this actually work? archiso.img is XZ compressed -- I don't think
> the kernel will read the real initramfs properly.

It does. ;)
I just built an image to test.

> >      cp ${work_dir}/${arch}/airootfs/boot/vmlinuz-linux
> > ${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz }
> >  
> > -- 
> > 2.1.2



-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-releng/attachments/20141029/53e45d0f/attachment.bin>


More information about the arch-releng mailing list