Skip to content

Commit

Permalink
FIX: correct qemu arch
Browse files Browse the repository at this point in the history
  • Loading branch information
alealexpro100 committed Jan 31, 2023
1 parent ef4e2f3 commit f53961e
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
5 changes: 3 additions & 2 deletions bin/alpine-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ fi
if [[ $arch == "$alpine_arch" ]]; then
apk_static_run=""
else
if qemu_chroot check "$arch" ok; then
apk_static_run="qemu_run_bin $arch"
parse_arch "$arch"
if qemu_chroot check "$qemu_arch" ok; then
apk_static_run="qemu_run_bin $qemu_arch"
else
exit 1
fi
Expand Down
5 changes: 3 additions & 2 deletions bin/arch-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ parse_arch "$(uname -m)"
if [[ $arch == "$arch_arch" ]]; then
arch_chroot_command="chroot_rootfs auto"
else
if qemu_chroot check "$arch" ok; then
arch_chroot_command="qemu_chroot $arch"
parse_arch "$arch"
if qemu_chroot check "$qemu_arch" ok; then
arch_chroot_command="qemu_chroot $qemu_arch"
else
return_err "Qemu emulation is not supported by your system. Aboring."
fi
Expand Down
7 changes: 4 additions & 3 deletions bin/void-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ if [[ $arch == "$void_arch" ]]; then
arch_chroot_command="chroot_rootfs auto"
xbps_static_run=""
else
if qemu_chroot check "$arch" ok; then
arch_chroot_command="qemu_chroot $arch"
xbps_static_run="qemu_run_bin $arch"
parse_arch "$arch"
if qemu_chroot check "$qemu_arch" ok; then
arch_chroot_command="qemu_chroot $qemu_arch"
xbps_static_run="qemu_run_bin $qemu_arch"
else
exit 1
fi
Expand Down
5 changes: 3 additions & 2 deletions lib/distr/alpine/distr_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
if [[ $arch == $alpine_arch ]]; then
arch_chroot_command="chroot_rootfs auto"
else
if qemu_chroot check $arch ok; then
arch_chroot_command="qemu_chroot $arch"
parse_arch "$qemu_arch"
if qemu_chroot check $qemu_arch ok; then
arch_chroot_command="qemu_chroot $qemu_arch"
else
exit 1
fi
Expand Down
5 changes: 3 additions & 2 deletions lib/distr/archlinux/distr_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
if [[ $arch == $arch_arch ]]; then
arch_chroot_command="chroot_rootfs auto"
else
if qemu_chroot check $arch ok; then
arch_chroot_command="qemu_chroot $arch"
parse_arch "$qemu_arch"
if qemu_chroot check $qemu_arch ok; then
arch_chroot_command="qemu_chroot $qemu_arch"
else
exit 1
fi
Expand Down
5 changes: 3 additions & 2 deletions lib/distr/debian/distr_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
if [[ $arch == $debian_arch ]]; then
arch_chroot_command="chroot_rootfs auto"
else
if qemu_chroot check $arch ok; then
arch_chroot_command="qemu_chroot $arch"
parse_arch "$qemu_arch"
if qemu_chroot check $qemu_arch ok; then
arch_chroot_command="qemu_chroot $qemu_arch"
else
exit 1
fi
Expand Down
5 changes: 3 additions & 2 deletions lib/distr/voidlinux/distr_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
if [[ $arch == $void_arch ]]; then
arch_chroot_command="chroot_rootfs auto"
else
if qemu_chroot check $arch ok; then
arch_chroot_command="qemu_chroot $arch"
parse_arch "$qemu_arch"
if qemu_chroot check $qemu_arch ok; then
arch_chroot_command="qemu_chroot $qemu_arch"
else
exit 1
fi
Expand Down

0 comments on commit f53961e

Please sign in to comment.