From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 9 Sep 2017 00:01:37 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20170908210136.GA19351@altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20170904115640.GA30835@lks.home> <20170904160138.GC15438@altlinux.org> <20170904191842.GA24238@lks.home> <20170904213509.GA18856@altlinux.org> <20170906120909.GA8403@lks.home> <20170906133734.GE13205@altlinux.org> <20170907074727.GA5493@lks.home> <20170907092831.GA27490@altlinux.org> <20170907101743.GA19849@lks.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <20170907101743.GA19849@lks.home> Subject: Re: [devel] Q: postinst hook for firmware-* X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2017 21:01:37 -0000 Archived-At: List-Archive: List-Post: --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 07, 2017 at 12:17:43PM +0200, Konstantin Lepikhov wrote: > Hi Dmitry! >=20 > On 09/07/2017, at 12:28:31 PM you wrote: >=20 > > On Thu, Sep 07, 2017 at 09:47:27AM +0200, Konstantin Lepikhov wrote: > > > =F4=CF=C7=C4=C1 =D7=D3=C5 =CD=CF=D6=CE=CF =D3=C4=C5=CC=C1=D4=D8 =C5= =DD=C5 =D0=D2=CF=DD=C5, =D3=CD. =D0=C1=D4=DE. > > [...] > > > @@ -119,6 +124,10 @@ if [ -n "$kernel_versions_handled" -a "$INITRD_A= UTOUPDATE" =3D all ]; then > > > # regenerate initrd image without updating symlinks > > > /sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$= VERSION" > > > done > > > +elif [ -n "$ucode_detected" ]; then > > > + VERSION=3D$(uname -r) > > > + # regenerate initrd image without updating symlinks > > > + /sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$V= ERSION" > > > elif [ -n "$module_versions_handled" ]; then > >=20 > > =EF=C2=D2=C1=C2=CF=D4=CB=C1 =D7=C1=D2=C9=C1=CE=D4=C1 $ucode_detected = =CE=C5 =C4=CF=CC=D6=CE=C1 =C9=D3=CB=CC=C0=DE=C1=D4=D8 =CF=C2=D2=C1=C2=CF=D4= =CB=D5 > > $module_versions_handled, =D7 =CF=D3=D4=C1=CC=D8=CE=CF=CD =D7=D9=C7=CC= =D1=C4=C9=D4 =D0=D2=C1=D7=C4=CF=D0=CF=C4=CF=C2=CE=CF. > =F0=CF=CE=D1=CC, =D0=D2=C9=CB=CC=C1=C4=D9=D7=C1=C0 =C9=D3=D0=D2=C1=D7=CC= =C5=CE=CE=D9=CA =D7=C1=D2=C9=C1=CE=D4. >=20 > --=20 > WBR et al. > >From aa8d4bf741fbb36c90231ec8a57a9d431c595dbe Mon Sep 17 00:00:00 2001 > From: "Konstantin A. Lepikhov" > Date: Wed, 6 Sep 2017 13:49:26 +0200 > Subject: [PATCH] kernel.filetrigger: ucode support >=20 > We need to rebuild initramfs on CPU ucode changes otherwise everything > will continue use outdated version till next kernel update. > --- > kernel.filetrigger | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) >=20 > diff --git a/kernel.filetrigger b/kernel.filetrigger > index 9cdf01e..0a07292 100755 > --- a/kernel.filetrigger > +++ b/kernel.filetrigger > @@ -9,6 +9,7 @@ > BOOTDIR=3D/boot > VMLINUZ_PREFIX=3D/boot/vmlinuz > MODULES_PREFIX=3D/lib/modules > +UCODE_PREFIX=3D/lib/firmware > INITRD_AUTOUPDATE=3D > =20 > . /etc/sysconfig/installkernel > @@ -99,6 +100,7 @@ $VERSION" > last_added=3D"$VERSION" > } > =20 > +ucode_detected=3D > while read f; do > case "$f" in > $VMLINUZ_PREFIX-[0-9].*-*-*) > @@ -107,6 +109,9 @@ while read f; do > $MODULES_PREFIX/*-*-*/*/*.ko*) > handle_module "$f" > ;; > + $UCODE_PREFIX/*-ucode/*) > + ucode_detected=3D1 > + ;; > esac > done > =20 > @@ -119,7 +124,13 @@ if [ -n "$kernel_versions_handled" -a "$INITRD_AUTOU= PDATE" =3D all ]; then > # regenerate initrd image without updating symlinks > /sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$VERS= ION" > done > -elif [ -n "$module_versions_handled" ]; then > +elif [ -n "$module_versions_handled" -o -n "$ucode_detected" ]; then > + if [ -n "$ucode_detected" ]; then > + VERSION=3D$(uname -r) > + # regenerate initrd image without updating symlinks > + /sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$VERS= ION" > + fi =FE=D4=CF-=D4=CF =D1 =D3=D2=C1=DA=D5 =CE=C5 =D3=D0=D2=CF=D3=C9=CC: =C4=CC= =D1 =CB=C1=CB=CF=C7=CF =D1=C4=D2=C1 =C8=CF=DE=C5=D4=D3=D1 =CF=C2=CE=CF=D7= =C9=D4=D8 initrd =D0=D2=C9 =CF=C2=CE=CF=D7=CC=C5=CE=C9=C9 ucode? =D4=C5=CB=D5=DD=C5=C5, =CB= =C1=CB =CE=C1=D0=C9=D3=C1=CE=CF =D7 =D0=C1=D4=DE=C5? =D4=CF, =CE=C1 =CB=CF=D4=CF=D2=CF=C5 /boot/vmlinuz =D5=CB=C1=DA=D9=D7=C1=C5= =D4? --=20 ldv --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJZswUwAAoJEAVFT+BVnCUIl/8P/1GYR9CuNbRgXLVIOtqfBWnl bfVmMiOfQ1SzoR1326nhepkUHr8M9ZoYvqULvzvPQ8UNP7YfaeumMFua6L3pFM1/ i7OG8u4VYP1TWBREiVq55wA5kkOIeRqqmn2ytvcOKQdUxwxY5Eze7dqYnv41Blkh GbWPZJkl6JZ3WZSy/Mcb58GIr+On9Sgs1+eEaM49Hgeaa4wpPCnxNR+rbJzxMiVE qVvNCoEEpS9xXJ8YaJz8EszhZND2JJ1bIbiZbYZgj9y8IuiLf0w1rgCUqVMeLQG3 lF5A94K9ZWq1rRtPIYpF+XwqqY4EnuREjMHC3a4zgrR2K2apyUEcxL5reeOAc8hD WLkPpk27RmloT5Vlwr8JMQdHeQbQR7E9RYdiyebAx42JbuMXtuatfLrHIRN4NtxV HbiO4Eoa4hF2aePGDacvCGUxu7SE7zTftLGeZILlYUrax+DlrjwWbfDfd+rHLifh 5Nz2l6m/XBy/B35K+E468M0wG3pzfB6QtsCbF0YhdT1zgb7iM/xqeAtAShlX+9WI pkzj+gzTkeUitIP8bIbuSVEPAx9NrV0CWF4DRYoAnLcN+KTGhWdg0jZDIO6CHT5a KN+b0okx0cg7kpPHmUX8jSLCbaXvpioqZ2JTLzDNiztB30PexAU3YKxxjwqdz019 QE8DWEFiALpI5ESV/ORf =LS2x -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--