lang: core: embedded: provisioner: Skip ignore if no drives available

Small bug for certain setups.
This commit is contained in:
James Shubin
2025-06-12 18:11:14 -04:00
parent 7ba4c4960b
commit ee7ad7cbbe

View File

@@ -84,7 +84,9 @@ usb_disks=$(for dev in /sys/block/sd*; do
done | paste -sd, -)
# Output the ignoredisk directive to a temporary file.
if [ "${usb_disks}" != "" ]; then
echo "ignoredisk --drives=${usb_disks}" > /tmp/ignoredisk.ks
fi
%end
%include /tmp/ignoredisk.ks