Merge pull request #1 from bobcassels/fix-for-raspberry-pi-imager

Fix image size so that Raspberry Pi Imager will write them.
This commit is contained in:
lisanet 2024-07-02 10:42:16 +02:00 committed by GitHub
commit 7c1a4697ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,7 @@ mkdir "$PACKAGES"
mkdir "$TARGET"
mkdir "$CMPL"
download https://netix.dl.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.44.0/e2fsprogs-1.44.0.tar.gz
download https://netix.dl.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.46.5/e2fsprogs-1.46.5.tar.gz
cd e2fs*
./configure --prefix "$TARGET" --disable-nls
make
@ -43,7 +43,7 @@ cp -a e2fsck/e2fsck "$BASE"
cp -a resize/resize2fs "$BASE"
cp -a misc/tune2fs "$BASE"
download https://ftp.gnu.org/gnu/coreutils/coreutils-8.29.tar.xz
download https://ftp.gnu.org/gnu/coreutils/coreutils-9.1.tar.xz
cd core*
./configure --prefix "$TARGET" --disable-nls
make

View File

@ -85,7 +85,6 @@ sleep 1
#Truncate the file
endresult=$(($newpartend * 512))
endresult=$(($endresult + 1))
truncate -s $endresult "$img"
aftersize=$(ls -lh "$img" | tr -s " " | cut -d " " -f 5)