Skip to content

Commit 44778dc

Browse files
committed
internal/worker/scripts: Fix mkinitrd call
Signed-off-by: Max Asnaashari <max.asna@futurfusion.io>
1 parent 8d4fe24 commit 44778dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/worker/scripts/dracut-add-virtio-drivers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ else
4040

4141
modules="$(echo "${modules}" |cut -d'"' -f1-2) virtio virtio_blk virtio_net virtio_pci\""
4242
sed -e "s/^INITRD_MODULES=.*/${modules}/" -i /etc/sysconfig/kernel
43-
if ! mkinitrd -f ; then
43+
if ! mkinitrd ; then
4444
echo "Fallback to explicit mkinitrd"
4545
for f in /lib/modules/* ; do
4646
version="$(basename "${f}")"
4747
initramfs="/boot/initrd-${version}.img"
4848
echo "Checking for ${initramfs}"
4949
if test -e "${initramfs}" ; then
5050
echo "Creating ${initramfs}"
51-
mkinitrd -f "${initramfs}" "${version}"
51+
mkinitrd "${initramfs}" "${version}"
5252
fi
5353
done
5454
fi

0 commit comments

Comments
 (0)