Devstack: don't scan /opt, /etc looking for isolinux

/opt contains a mirror of an insane amount of stuff, and it chews
disk io to scan it looking for isolinux.bin which should be under
/usr on... well... every OS we support.

Also, don't scan /etc. That is just weird.

Change-Id: I52f4c1ba8808fea637df69a631eaa1c674dc8e69
(cherry picked from commit 4775fb3d92)
This commit is contained in:
Julia Kreger 2021-09-21 15:17:49 -07:00
parent c5beaa95c9
commit 7a0cb9f1f5
1 changed files with 1 additions and 1 deletions

View File

@ -1783,7 +1783,7 @@ function configure_ironic_conductor {
iniset $IRONIC_CONF_FILE deploy default_boot_option $IRONIC_DEFAULT_BOOT_OPTION
isolinux=$(find -L /usr /opt /etc -type f -name "isolinux.bin" | head -1)
isolinux=$(find -L /usr -type f -name "isolinux.bin" | head -1)
if [[ -n "$isolinux" ]]; then
iniset $IRONIC_CONF_FILE DEFAULT isolinux_bin "$isolinux"
fi