From 70193c536f132a2d8b6757972f9087374e34ae9b Mon Sep 17 00:00:00 2001 From: dalto8 <57767042+dalto8@users.noreply.github.com> Date: Wed, 27 Dec 2023 21:28:40 +0000 Subject: [PATCH] [eos-dracut] Put the initrd directly in the correct location --- eos-dracut/dracut-install | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eos-dracut/dracut-install b/eos-dracut/dracut-install index ce626fc6..80d3c032 100755 --- a/eos-dracut/dracut-install +++ b/eos-dracut/dracut-install @@ -32,13 +32,11 @@ for line in "${lines[@]}"; do pkgbase="$(<"${line}/pkgbase")" kver="${line##*/}" - dracut_restore_img="/usr/lib/modules/${kver}/initrd" - + echo ":: Building initramfs for ${pkgbase} (${kver})" - dracut --force --hostonly --no-hostonly-cmdline${DRACUT_EXTRA_PARAMS} ${dracut_restore_img} "${kver}" - install -Dm644 ${dracut_restore_img} "/boot/initramfs-${pkgbase}.img" + dracut --force --hostonly --no-hostonly-cmdline${DRACUT_EXTRA_PARAMS} /boot/initramfs-${pkgbase}.img "${kver}" - if [[ ${NO_DRACUT_FALLBACK} != "true" ]] ; then + if [[ ${NO_DRACUT_FALLBACK} != "true" ]] ; then echo ":: Building fallback initramfs for ${pkgbase} (${kver})" dracut --force --no-hostonly${DRACUT_EXTRA_PARAMS} "/boot/initramfs-${pkgbase}-fallback.img" "${kver}" fi