Skip to content

Commit

Permalink
stage0: Check whether foreign architecture is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
XECDesign authored and kayhannay committed Feb 12, 2024
1 parent 2e73951 commit 11729f5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions stage0/00-configure-apt/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ fi

cat files/raspberrypi.gpg.key | gpg --dearmor > "${STAGE_WORK_DIR}/raspberrypi-archive-stable.gpg"
install -m 644 "${STAGE_WORK_DIR}/raspberrypi-archive-stable.gpg" "${ROOTFS_DIR}/etc/apt/trusted.gpg.d/"
on_chroot << EOF
dpkg --add-architecture arm64
apt-get update
apt-get dist-upgrade -y
on_chroot <<- \EOF
ARCH="$(dpkg --print-architecture)"
if [ "$ARCH" = "armhf" ]; then
dpkg --add-architecture arm64
elif [ "$ARCH" = "arm64" ]; then
dpkg --add-architecture armhf
fi
apt-get update
apt-get dist-upgrade -y
EOF

0 comments on commit 11729f5

Please sign in to comment.