build: initrd make it coherent to the image build

Add -f for moving the initrd to the correct file path

Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
Zvonko Kaiser 2024-04-15 14:15:58 +00:00
parent 3c29c1707d
commit 95b69c5732

View File

@ -54,7 +54,7 @@ build_initrd() {
artifact_name=${artifact_name/.initrd/"-${nvidia_driver_version}".initrd}
fi
mv "kata-containers-initrd.img" "${install_dir}/${artifact_name}"
mv -f "kata-containers-initrd.img" "${install_dir}/${artifact_name}"
(
cd "${install_dir}"
ln -sf "${artifact_name}" "${final_artifact_name}${image_initrd_extension}"