Skip to content

Commit 9d89c22

Browse files
Merge pull request #533 from mumesan/fix_init_container_crashloop_osprh_14452
Fix init container crashloop <JIRA-14452>
2 parents 0dc19d7 + 0f18cb9 commit 9d89c22

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)