lang: core embedded: provisioner: Work with USB-free machines

This feature was for machines that boot from USB keys. When we PXE boot,
this should not fail when the file isn't missing.
This commit is contained in:
James Shubin
2025-09-16 01:11:32 -04:00
parent a54553c858
commit 25804c71df

View File

@@ -86,6 +86,8 @@ done | paste -sd, -)
# Output the ignoredisk directive to a temporary file.
if [ "${usb_disks}" != "" ]; then
echo "ignoredisk --drives=${usb_disks}" > /tmp/ignoredisk.ks
else
echo "# no ignoredisk directive" > /tmp/ignoredisk.ks
fi
%end
%include /tmp/ignoredisk.ks