Skip to content

Commit 253910e

Browse files
committed
added img extraction hints
1 parent eab88d8 commit 253910e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/image/setup.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,15 @@ sudo touch /boot/omnipy-fwupdate
9393

9494
rm /home/pi/.bash_history
9595
sudo halt
96+
97+
######
98+
99+
sudo umount /dev/sdh1
100+
sudo umount /dev/sdh2
101+
#shrink with /g/parted
102+
sudo dcfldd if=/dev/sdh of=omnipy.img
103+
#abort as appropriate
104+
sudo ~/pishrink.sh omnipy.img omnipy2.img
105+
rm omnipy.img
106+
mv omnipy2.img omnipy.img
107+
zip -9 omnipy.zip omnipy.img

0 commit comments

Comments
 (0)