##// END OF EJS Templates
Merge pull request #225 from cmjdiff/bigger-firmware...
drtyhlpr -
r767:1852169832e2 Fusion
parent child
Show More
@@ -803,7 +803,7 CHROOT_SIZE=$(expr "$(du -s "${R}" | awk '{ print $1 }')")
803
803
804 # Calculate the amount of needed 512 Byte sectors
804 # Calculate the amount of needed 512 Byte sectors
805 TABLE_SECTORS=$(expr 1 \* 1024 \* 1024 \/ 512)
805 TABLE_SECTORS=$(expr 1 \* 1024 \* 1024 \/ 512)
806 FRMW_SECTORS=$(expr 64 \* 1024 \* 1024 \/ 512)
806 FRMW_SECTORS=$(expr 128 \* 1024 \* 1024 \/ 512)
807 ROOT_OFFSET=$(expr "${TABLE_SECTORS}" + "${FRMW_SECTORS}")
807 ROOT_OFFSET=$(expr "${TABLE_SECTORS}" + "${FRMW_SECTORS}")
808
808
809 # The root partition is EXT4
809 # The root partition is EXT4
@@ -832,7 +832,7 ${TABLE_SECTORS},${ROOT_SECTORS},83
832 EOM
832 EOM
833
833
834 # Setup temporary loop devices
834 # Setup temporary loop devices
835 FRMW_LOOP="$(losetup -o 1M --sizelimit 64M -f --show "$IMAGE_NAME"-frmw.img)"
835 FRMW_LOOP="$(losetup -o 1M --sizelimit 128M -f --show "$IMAGE_NAME"-frmw.img)"
836 ROOT_LOOP="$(losetup -o 1M -f --show "$IMAGE_NAME"-root.img)"
836 ROOT_LOOP="$(losetup -o 1M -f --show "$IMAGE_NAME"-root.img)"
837 else # ENABLE_SPLITFS=false
837 else # ENABLE_SPLITFS=false
838 dd if=/dev/zero of="$IMAGE_NAME.img" bs=512 count="${TABLE_SECTORS}"
838 dd if=/dev/zero of="$IMAGE_NAME.img" bs=512 count="${TABLE_SECTORS}"
@@ -845,8 +845,8 ${ROOT_OFFSET},${ROOT_SECTORS},83
845 EOM
845 EOM
846
846
847 # Setup temporary loop devices
847 # Setup temporary loop devices
848 FRMW_LOOP="$(losetup -o 1M --sizelimit 64M -f --show "$IMAGE_NAME".img)"
848 FRMW_LOOP="$(losetup -o 1M --sizelimit 128M -f --show "$IMAGE_NAME".img)"
849 ROOT_LOOP="$(losetup -o 65M -f --show "$IMAGE_NAME".img)"
849 ROOT_LOOP="$(losetup -o 129M -f --show "$IMAGE_NAME".img)"
850 fi
850 fi
851
851
852 if [ "$ENABLE_CRYPTFS" = true ] ; then
852 if [ "$ENABLE_CRYPTFS" = true ] ; then
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant