Skip to content

Commit 116a1b1

Browse files
authored
Merge pull request #534 from openshift-cherrypick-robot/cherry-pick-533-to-18.0-fr2
[18.0-fr2] Fix init container crashloop <JIRA-14452>
2 parents f21b58a + 508baa6 commit 116a1b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/common/bin/pxe-init.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ fi
6464

6565
# Build an ESP image
6666
pushd /var/lib/ironic/httpboot
67-
if [ ! -a "esp.img" ]; then
67+
if ! command -v dd || ! command -v mkfs.msdos || ! command -v mmd; then
68+
echo "WARNING: esp.img will not be created because dd/mkfs.msdos/mmd are missing. Please patch the OpenstackVersion to update container images."
69+
elif [ ! -a "esp.img" ]; then
6870
dd if=/dev/zero of=esp.img bs=4096 count=1024
6971
mkfs.msdos -F 12 -n 'ESP_IMAGE' esp.img
7072

0 commit comments

Comments
 (0)