Skip to content

Commit

Permalink
[eos-dracut] Put the initrd directly in the correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
dalto8 authored Dec 27, 2023
1 parent 9798941 commit 70193c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions eos-dracut/dracut-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70193c5

Please sign in to comment.