Skip to content

Commit

Permalink
Foreign architecture may not be defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelsson authored and Thomas Lange committed Mar 21, 2019
1 parent 0873761 commit f8bb531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/fai-make-nfsroot
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ call_debootstrap() {
targetarch=$(echo "$(expr "$FAI_DEBOOTSTRAP_OPTS" : '.*--arch[=[:space:]]\([^[:space:]]*\)' || true)" | tail -n 1)
hostarch1=$(dpkg --print-architecture)
hostarch2=$(dpkg --print-foreign-architectures)
if [ -z "$hostarch2" ]; then
hostarch2=$hostarch1
fi

_debootstrap=qemu-debootstrap
if [ -z "$targetarch" ]; then
Expand Down

0 comments on commit f8bb531

Please sign in to comment.