lang: core: embedded: provisioner: Fix regression in Fedora 41

Unfortunately with Fedora 41 and DNF5, this breaks what our host machine
expects. So you now need dnf5+ to make this work, or you can revert this
commit.
This commit is contained in:
James Shubin
2025-01-18 01:02:17 -05:00
parent 6499fcb1e0
commit 2f3bd72491

View File

@@ -334,7 +334,9 @@ class base:repo($config) {
exec "uefi-download-${uid}" {
# no inner quotes because it's not bash handling this!
# the dnf download command makes the download destination dir
cmd => "/usr/bin/dnf download ${pkgs_uefi_string} --assumeyes --disablerepo=* --repofrompath ${repoidname},${repo_url} --downloaddir=${uefi_download_dir} --releasever ${version}",
# With DNF5 (provisioning OS Fedora 41+) it's --destdir.
# Previously it's --downloaddir and no idea why the API break.
cmd => "/usr/bin/dnf download ${pkgs_uefi_string} --assumeyes --disablerepo=* --repofrompath ${repoidname},${repo_url} --destdir=${uefi_download_dir} --releasever ${version}",
# TODO: add an optional expiry mtime check that deletes these old files with an || rm * && false
ifcmd => "! test -s '${uefi_download_dir}shim-x64'*",