mirror of
https://github.com/lisanet/PiShrink-macOS.git
synced 2025-12-23 18:50:09 +00:00
Fix image size so that Raspberry Pi Imager will write them.
- Don't add one to size; Raspberry Pi Imager checks that image size is a multiple of 512. - Update e2fsprogs and coreutils to latest versions.
This commit is contained in:
parent
33ec6ef8d1
commit
f76a6dcad0
@ -35,7 +35,7 @@ mkdir "$PACKAGES"
|
|||||||
mkdir "$TARGET"
|
mkdir "$TARGET"
|
||||||
mkdir "$CMPL"
|
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*
|
cd e2fs*
|
||||||
./configure --prefix "$TARGET" --disable-nls
|
./configure --prefix "$TARGET" --disable-nls
|
||||||
make
|
make
|
||||||
@ -43,7 +43,7 @@ cp -a e2fsck/e2fsck "$BASE"
|
|||||||
cp -a resize/resize2fs "$BASE"
|
cp -a resize/resize2fs "$BASE"
|
||||||
cp -a misc/tune2fs "$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*
|
cd core*
|
||||||
./configure --prefix "$TARGET" --disable-nls
|
./configure --prefix "$TARGET" --disable-nls
|
||||||
make
|
make
|
||||||
|
|||||||
1
pishrink
1
pishrink
@ -85,7 +85,6 @@ sleep 1
|
|||||||
|
|
||||||
#Truncate the file
|
#Truncate the file
|
||||||
endresult=$(($newpartend * 512))
|
endresult=$(($newpartend * 512))
|
||||||
endresult=$(($endresult + 1))
|
|
||||||
truncate -s $endresult "$img"
|
truncate -s $endresult "$img"
|
||||||
aftersize=$(ls -lh "$img" | tr -s " " | cut -d " " -f 5)
|
aftersize=$(ls -lh "$img" | tr -s " " | cut -d " " -f 5)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user