Loading run/install.sh +8 −2 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ BOOT=$(find $TMP -name "*.bin.zip") BOOT=$(echo "$BOOT" | head -c -5) unzip -q -o "$BOOT".zip -d $TMP echo "Install: Creating partition table..." echo "Install: Allocating diskspace..." SYSTEM="$TMP/sys.img" SYSTEM_SIZE=4954537983 Loading @@ -115,7 +115,11 @@ if (( SYSTEM_SIZE > SPACE )); then echo "ERROR: Not enough free space to create a 4 GB system disk." && exit 87 fi echo "Install: Allocating diskspace..." if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then rm -f "${SYSTEM}" echo "ERROR: Could not allocate a file for the system disk." && exit 88 fi dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes status=none # Check if file exists Loading @@ -131,6 +135,8 @@ if [[ SIZE -ne SYSTEM_SIZE ]]; then echo "ERROR: System disk has the wrong size: ${SIZE}" && exit 90 fi echo "Install: Creating partition table..." PART="$TMP/partition.fdisk" { echo "label: dos" Loading Loading
run/install.sh +8 −2 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ BOOT=$(find $TMP -name "*.bin.zip") BOOT=$(echo "$BOOT" | head -c -5) unzip -q -o "$BOOT".zip -d $TMP echo "Install: Creating partition table..." echo "Install: Allocating diskspace..." SYSTEM="$TMP/sys.img" SYSTEM_SIZE=4954537983 Loading @@ -115,7 +115,11 @@ if (( SYSTEM_SIZE > SPACE )); then echo "ERROR: Not enough free space to create a 4 GB system disk." && exit 87 fi echo "Install: Allocating diskspace..." if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then rm -f "${SYSTEM}" echo "ERROR: Could not allocate a file for the system disk." && exit 88 fi dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes status=none # Check if file exists Loading @@ -131,6 +135,8 @@ if [[ SIZE -ne SYSTEM_SIZE ]]; then echo "ERROR: System disk has the wrong size: ${SIZE}" && exit 90 fi echo "Install: Creating partition table..." PART="$TMP/partition.fdisk" { echo "label: dos" Loading