Skip to content

Commit

Permalink
vm: fix imgdir parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed Jan 8, 2025
1 parent ca62214 commit 214d80f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ set -o pipefail

location="$1"
host="$(cat "locations/$location.yml" | yq -r '.hosts[] | select(.role == "corerouter") | .hostname')"

[ -n "$2" ] && imgdir="$4" || imgdir="./tmp/build/$host/bin/targets/x86/64"
[ -n "$2" ] && imgdir="$2" || imgdir="./tmp/build/$host/bin/targets/x86/64"

# get kernel and rootfs

Expand Down

0 comments on commit 214d80f

Please sign in to comment.