From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] Core Update 168: Hard-code kernel version to 5.15.35 Date: Fri, 13 May 2022 11:11:09 +0100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4892617026294986347==" List-Id: --===============4892617026294986347== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Can you elaborate more on what this patch is supposed to fix? > On 12 May 2022, at 18:41, Peter M=C3=BCller wr= ote: >=20 > On systems that have previously running on testing, kernel 5.15.32 might > still be installed. dracut being called with ${KVER} will then build an > inital ramdisk for the wrong kernel, as 5.15.32 might still be running, > albeit 5.15.35 has been installed due to the Pakfire procedure when > upgrading on testing. >=20 > Due to lack of hardware, this patch is untested on ARM. >=20 > https://lists.ipfire.org/pipermail/development/2022-May/013433.html >=20 > Reported-by: Stefan Schantl > Signed-off-by: Peter M=C3=BCller > --- > config/rootfiles/core/168/update.sh | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/16= 8/update.sh > index d21f648dd..7cc8800b2 100644 > --- a/config/rootfiles/core/168/update.sh > +++ b/config/rootfiles/core/168/update.sh > @@ -107,14 +107,14 @@ chmod -v 750 /etc/sudoers.d > chmod -v 640 /etc/sudoers.d/* >=20 > # Rebuild initial ramdisk to apply microcode updates > -dracut --regenerate-all --force > +dracut --kver=3D"5.15.35-ipfire" --regenerate-all --force Isn=E2=80=99t specifying the release and =E2=80=9C=E2=80=94-regenerate-all=E2= =80=9D a conflict? -Michael > case "$(uname -m)" in > armv*) > - mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVE= R}-ipfire.img /boot/uInit-${KVER}-ipfire > - rm /boot/initramfs-${KVER}-ipfire.img > + mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-5.15.= 35-ipfire.img /boot/uInit-5.15.35-ipfire > + rm /boot/initramfs-5.15.35-ipfire.img > ;; > aarch64) > - mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${K= VER}-ipfire.img /boot/uInit-${KVER}-ipfire > + mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-5.1= 5.35-ipfire.img /boot/uInit-5.15.35-ipfire > # dont remove initramfs because grub need this to boot. > ;; > esac > --=20 > 2.35.3 --===============4892617026294986347==--