From bb392c4e1c33e91a35a140517a85d1abab8c7726 Mon Sep 17 00:00:00 2001 From: Alex Tomic Date: Mon, 22 Jul 2024 16:11:35 +0000 Subject: [PATCH] build script bug --- scripts/build.sh | 7 ++++--- scripts/customize-image.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 5df70dd..e9c86a9 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -44,7 +44,7 @@ fi set -e -truncate -s 3G $img +truncate -s 4G $img loop=$(sudo losetup --partscan --show --nooverlap -f $img) # This may fail on older versions of growpart and require # patching, due to the kernel version in the image build @@ -53,9 +53,10 @@ loop=$(sudo losetup --partscan --show --nooverlap -f $img) sudo growpart ${loop} 1 sudo e2fsck -p -f ${loop}p1 sudo resize2fs ${loop}p1 -printf "Resized image to 3G - fdisk output should reflect this\n" +printf "Resized image to 4G - fdisk output should reflect this\n" sudo fdisk -l $loop -sudo mount -o remount ${loop}p1 ${mnt} +sudo mount ${loop}p1 ${mnt} +sudo mount --bind /dev ${mnt}/dev # Copy files into image sudo mkdir ${mnt}/tmp/overlay diff --git a/scripts/customize-image.sh b/scripts/customize-image.sh index aa7c10e..a667729 100644 --- a/scripts/customize-image.sh +++ b/scripts/customize-image.sh @@ -10,7 +10,7 @@ apt-get install -y apt-transport-https ca-certificates curl clang llvm jq \ python3-dnslib python3-cachetools # for tcpconnect dns tracing in python # For ubuntu jammy -apt-get install linux-tools-common +apt-get install linux-tools-common -y wget https://go.dev/dl/go1.22.3.linux-arm64.tar.gz rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.3.linux-arm64.tar.gz