[a/kernel-gwh] use dracut for initrd

This commit is contained in:
Gwenhael Le Moine 2024-09-30 09:31:41 +02:00
parent f44421bc84
commit 72a76c6a9f
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -106,10 +106,11 @@ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
echo OK
echo -n "building initrd… "
cd /
UCODE=""
[ -e /boot/intel-ucode.cpio ] && UCODE="-P /boot/intel-ucode.cpio"
eval "\$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -k $VERSION -r | sed "s|/boot/initrd.gz|/boot/initrd-${VERSION}.gz|") \${UCODE}"
# cd /
# UCODE=""
# [ -e /boot/intel-ucode.cpio ] && UCODE="-P /boot/intel-ucode.cpio"
# eval "\$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -k $VERSION -r | sed "s|/boot/initrd.gz|/boot/initrd-${VERSION}.gz|") \${UCODE}"
dracut --hostonly --force --kver "$VERSION" "/boot/initrd-$VERSION.img"
echo "OK"
grub-mkconfig -o /boot/grub/grub.cfg