From 284d3cede996288c113e60741d3b5750bf882fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 1 Jul 2013 17:09:46 +0200 Subject: [PATCH] add some code to fixup the size of the image, and make the img file usable directly --- copy_to_final.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copy_to_final.sh b/copy_to_final.sh index c14aa7f..94359eb 100755 --- a/copy_to_final.sh +++ b/copy_to_final.sh @@ -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.