Skip to content

Commit

Permalink
Merge pull request #5803 from M4rtinK/master-fix_live_image_creation
Browse files Browse the repository at this point in the history
infra: Fix live image generation if machine has multiple IPs
  • Loading branch information
jkonecny12 authored Aug 6, 2024
2 parents b2494f1 + 4f4699e commit afb4fac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockerfile/anaconda-live-iso-creator/lmc-build
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ start_http_server() {
echo "$!" > $HTTP_PID

# extract container IP
IP=$(ip -4 addr show scope global | grep -oP 'inet \K[\d.]+')
IP=$(ip -4 addr show scope global | grep -oP 'inet \K[\d.]+' | head -n1)
echo "http://$IP:8000/"
}

Expand Down
2 changes: 1 addition & 1 deletion dockerfile/anaconda-live-iso-creator/lmc-build.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ start_http_server() {
echo "$!" > $HTTP_PID

# extract container IP
IP=$(ip -4 addr show scope global | grep -oP 'inet \K[\d.]+')
IP=$(ip -4 addr show scope global | grep -oP 'inet \K[\d.]+' | head -n1)
echo "http://$IP:8000/"
}

Expand Down

0 comments on commit afb4fac

Please sign in to comment.