Skip to content

Commit

Permalink
arm64: fix build_qcow2
Browse files Browse the repository at this point in the history
Signed-off-by: Florent CARLI <[email protected]>
  • Loading branch information
insatomcat committed Jan 7, 2025
1 parent 689a642 commit 88ab94b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build_qcow2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,17 @@ docker cp "$wd"/build_tmp/. fai-setup:ext/srv/fai/config/
# Stopping the container after having added stuff in it
$COMPOSECMD -f "$wd"/docker-compose.yml down

# ARM64 or AMD64
arch=$(uname -m)
if [ "$arch" == "aarch64" ]; then
seapatharch="SEAPATH_ARM64"
else
seapatharch="SEAPATH_AMD64"
fi

# Creating the VM
# patches /sbin/install_packages (bug in the process of being corrected upstream)
CLASSES="DEBIAN,FAIBASE,FRENCH,BOOKWORM64,SEAPATH_COMMON,SEAPATH_VM,GRUB_EFI,USERCUSTOMIZATION,LAST"
CLASSES="DEBIAN,FAIBASE,FRENCH,BOOKWORM64,SEAPATH_COMMON,SEAPATH_VM,GRUB_EFI,USERCUSTOMIZATION,${seapatharch},LAST"
$COMPOSECMD -f "$wd"/docker-compose.yml run --rm fai-cd bash -c "\
sed -i -e \"s|-f \\\"\\\$FAI_ROOT/usr/sbin/apt-cache|-f \\\"\\\$FAI_ROOT/usr/bin/apt-cache|\" /sbin/install_packages && \
sed -i -e \"s/ --allow-change-held-packages//\" /sbin/install_packages && \
Expand Down

0 comments on commit 88ab94b

Please sign in to comment.