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