From 1d4dafb4cab3565865f90d233ca87cd9fbb445b2 Mon Sep 17 00:00:00 2001 From: effective-range Date: Sat, 23 Nov 2024 16:51:43 +0100 Subject: [PATCH] fix: install er apt repo in chroot as well --- scripts/build_steps_armhf/06-erapt_setup | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/build_steps_armhf/06-erapt_setup b/scripts/build_steps_armhf/06-erapt_setup index 63435e5..174446a 100755 --- a/scripts/build_steps_armhf/06-erapt_setup +++ b/scripts/build_steps_armhf/06-erapt_setup @@ -10,5 +10,14 @@ source "$(dirname $0)/../build_common" #FIXME: we should be also using $DEBOOTSTRAP_TARGET instead of stable!!! + +# Setup in host container echo "deb http://aptrepo.effective-range.com stable main" > /etc/apt/sources.list.d/er.list -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C1AEE2EDBAEC37595801DDFAE15BC62117A4E0F3 \ No newline at end of file +apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C1AEE2EDBAEC37595801DDFAE15BC62117A4E0F3 + +# Setup in chroot as well +if [ -d /var/chroot/buildroot ] +then + echo "deb http://aptrepo.effective-range.com stable main" > /var/chroot/buildroot/etc/apt/sources.list.d/er.list + chroot /var/chroot/buildroot apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C1AEE2EDBAEC37595801DDFAE15BC62117A4E0F3 +fi \ No newline at end of file