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:
Bob Cassels
2023-01-12 11:47:49 -05:00
parent 33ec6ef8d1
commit f76a6dcad0
2 changed files with 2 additions and 3 deletions

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)