mirror of https://github.com/CIRCL/Circlean
update helper scripts
parent
08d7504114
commit
66fd8c8ebc
|
@ -8,13 +8,13 @@ if [ "$(id -u)" != "0" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# copy deb
|
# copy deb
|
||||||
cp deb/*.deb ${CHROOT_PATH}/
|
#cp deb/*.deb ${CHROOT_PATH}/
|
||||||
|
|
||||||
# prepare fs archive
|
# prepare fs archive
|
||||||
tar -cvpzf backup.tar.gz -C fs/ .
|
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.
|
# /!\ 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
|
# if it is, use fdisk to remove the second partition and recreate it
|
||||||
|
|
|
@ -7,6 +7,6 @@ dpkg-reconfigure locales
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get dist-upgrade
|
apt-get dist-upgrade
|
||||||
apt-get autoremove
|
apt-get autoremove
|
||||||
apt-get install libreoffice libfontforge1 p7zip-full
|
apt-get install libreoffice p7zip-full libfontforge1
|
||||||
dpkg -i libpoppler28_0.20.5-3_armhf.deb pdf2htmlex_0.8-1~git201303011406r3bc73-0ubuntu1_armhf.deb
|
dpkg -i libpoppler28*.deb pdf2htmlex*.deb
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,10 @@ set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# If you use a partition...
|
# If you use a partition...
|
||||||
PARTITION_ROOTFS='/dev/mmcblk0p2'
|
#PARTITION_ROOTFS='/dev/mmcblk0p2'
|
||||||
PARTITION_BOOT='/dev/mmcblk0p1'
|
#PARTITION_BOOT='/dev/mmcblk0p1'
|
||||||
|
PARTITION_ROOTFS='/dev/sdd2'
|
||||||
|
PARTITION_BOOT='/dev/sdd1'
|
||||||
# If you use the img
|
# If you use the img
|
||||||
##### Debian
|
##### Debian
|
||||||
IMAGE='2013-02-09-wheezy-raspbian.img'
|
IMAGE='2013-02-09-wheezy-raspbian.img'
|
||||||
|
@ -54,7 +56,7 @@ export QEMU_CPU=arm1176
|
||||||
|
|
||||||
mkdir -p ${CHROOT_PATH}
|
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_ROOTFS} ${IMAGE} ${CHROOT_PATH}
|
||||||
mount -o loop,offset=${OFFSET_BOOT} ${IMAGE} ${CHROOT_PATH}/boot
|
mount -o loop,offset=${OFFSET_BOOT} ${IMAGE} ${CHROOT_PATH}/boot
|
||||||
elif [ -a ${PARTITION_ROOTFS} ]; then
|
elif [ -a ${PARTITION_ROOTFS} ]; then
|
||||||
|
|
Loading…
Reference in New Issue