Skip to content

Commit

Permalink
build script bug
Browse files Browse the repository at this point in the history
  • Loading branch information
atomic77 committed Jul 22, 2024
1 parent 75f0ec1 commit bb392c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/customize-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb392c4

Please sign in to comment.