diff --git a/copy_to_final.sh b/copy_to_final.sh index f82770e..fcf1135 100755 --- a/copy_to_final.sh +++ b/copy_to_final.sh @@ -8,13 +8,13 @@ if [ "$(id -u)" != "0" ]; then fi # copy deb -cp deb/*.deb ${CHROOT_PATH}/ +#cp deb/*.deb ${CHROOT_PATH}/ # prepare fs archive tar -cvpzf backup.tar.gz -C fs/ . -tar -xzfv backup.tar.gz -C ${CHROOT_PATH}/ +tar -xzf backup.tar.gz -C ${CHROOT_PATH}/ -sudo dd bs=4M if=FINAL_2013-02-09-wheezy-raspbian.img of=/dev/sdd +#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 brocken. # if it is, use fdisk to remove the second partition and recreate it diff --git a/prepare_rPI.sh b/prepare_rPI.sh index 2a0dc4b..03006a8 100755 --- a/prepare_rPI.sh +++ b/prepare_rPI.sh @@ -7,6 +7,6 @@ dpkg-reconfigure locales apt-get update apt-get dist-upgrade apt-get autoremove -apt-get install libreoffice libfontforge1 p7zip-full -dpkg -i libpoppler28_0.20.5-3_armhf.deb pdf2htmlex_0.8-1~git201303011406r3bc73-0ubuntu1_armhf.deb +apt-get install libreoffice p7zip-full libfontforge1 +dpkg -i libpoppler28*.deb pdf2htmlex*.deb diff --git a/proper_chroot.sh b/proper_chroot.sh index ebd9483..3b8418d 100755 --- a/proper_chroot.sh +++ b/proper_chroot.sh @@ -14,8 +14,10 @@ set -e set -x # If you use a partition... -PARTITION_ROOTFS='/dev/mmcblk0p2' -PARTITION_BOOT='/dev/mmcblk0p1' +#PARTITION_ROOTFS='/dev/mmcblk0p2' +#PARTITION_BOOT='/dev/mmcblk0p1' +PARTITION_ROOTFS='/dev/sdd2' +PARTITION_BOOT='/dev/sdd1' # If you use the img ##### Debian IMAGE='2013-02-09-wheezy-raspbian.img' @@ -54,7 +56,7 @@ export QEMU_CPU=arm1176 mkdir -p ${CHROOT_PATH} -if [ -a ${IMAGE} ]; then +if [ ! -z ${IMAGE} ]; then mount -o loop,offset=${OFFSET_ROOTFS} ${IMAGE} ${CHROOT_PATH} mount -o loop,offset=${OFFSET_BOOT} ${IMAGE} ${CHROOT_PATH}/boot elif [ -a ${PARTITION_ROOTFS} ]; then