add some code to fixup the size of the image, and make the img file usable directly

pull/10/head
Raphaël Vinot 2013-07-01 17:09:46 +02:00
parent 8c157441c5
commit 284d3cede9
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ tar -cvpzf backup.tar.gz -C fs/ .
tar -xzf backup.tar.gz -C ${CHROOT_PATH}/
cp deb/led ${CHROOT_PATH}/usr/sbin/led
losetup -o $((122880 * 512)) /dev/loop0 NEW_FINAL_2013-02-09-wheezy-raspbian.img
resize2fs /dev/loop0
losetup -d /dev/loop0
#sudo dd bs=4M if=NEW_FINAL_2013-02-09-wheezy-raspbian.img of=/dev/sdd
# /!\ always try to mount the root partition on the SD, it is usually broken.