mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 10:35:36 +00:00
Fix the build of x86 image
This commit is contained in:
parent
45814d65a5
commit
8475d8eb41
1 changed files with 8 additions and 4 deletions
12
lib/core.sh
12
lib/core.sh
|
|
@ -312,6 +312,7 @@ function build_image_env(){
|
|||
builtin cd ${maindir}/root/opt/proot
|
||||
for arch in ${ARCH_LIST[@]}
|
||||
do
|
||||
info "Downloading $PROOT_LINK/proot-$arch ..."
|
||||
sudo $CURL $PROOT_LINK/proot-$arch
|
||||
sudo chmod +x proot-$arch
|
||||
done
|
||||
|
|
@ -319,11 +320,14 @@ function build_image_env(){
|
|||
info "Installing qemu static binaries"
|
||||
sudo mkdir -p ${maindir}/root/opt/qemu
|
||||
builtin cd ${maindir}/root/opt/qemu
|
||||
NEW_ARCH_LIST=( "${ARCH_LIST[@]/$ARCH}" )
|
||||
for arch in ${NEW_ARCH_LIST[@]}
|
||||
for arch in ${ARCH_LIST[@]}
|
||||
do
|
||||
sudo $CURL ${MAIN_REPO}/qemu/$ARCH/qemu-$ARCH-static-$arch
|
||||
sudo chmod +x qemu-$ARCH-static-$arch
|
||||
if [ "$arch" != "$ARCH" ]
|
||||
then
|
||||
info "Downloading qemu-$ARCH-static-$arch ..."
|
||||
sudo $CURL ${MAIN_REPO}/qemu/$ARCH/qemu-$ARCH-static-$arch
|
||||
sudo chmod +x qemu-$ARCH-static-$arch
|
||||
fi
|
||||
done
|
||||
|
||||
# AUR packages requires non-root user to be compiled. proot fakes the user to 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue