Skip to content

Commit

Permalink
Merge pull request #32 from xcp-ng/for-xs8/fix-driver-disk
Browse files Browse the repository at this point in the history
__mkinitrd: pass -f to dracut
  • Loading branch information
ydirson authored Jul 10, 2024
2 parents 4a271fe + e916453 commit 68cd4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ def __mkinitrd(mounts, partition, package, kernel_version, fcoe_interfaces):
except:
pass

cmd = ['dracut', output_file, kernel_version]
cmd = ['dracut', '-f', output_file, kernel_version]

if util.runCmd2(['chroot', mounts['root']] + cmd) != 0:
raise RuntimeError("Failed to create initrd for %s. This is often due to using an installer that is not the same version of %s as your installation source." % (kernel_version, MY_PRODUCT_BRAND))
Expand Down

0 comments on commit 68cd4f6

Please sign in to comment.