update .gitignore for osx, fix image size, set en_US locale

pull/206/head
Jeffrey Paul 2018-10-15 21:16:03 -07:00
parent 925df11463
commit d8da3751a5
No known key found for this signature in database
GPG Key ID: 052443F4DF2A55C2
3 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ SKIP_IMAGES
.pc
*-pc
apt-cacher-ng/
.DS_Store

View File

@ -16,6 +16,9 @@ ROUND_SIZE="$((4 * 1024 * 1024))"
ROUNDED_ROOT_SECTOR=$(((2 * BOOT_SIZE + ROUND_SIZE) / ROUND_SIZE * ROUND_SIZE / 512 + 8192))
IMG_SIZE=$(((BOOT_SIZE + TOTAL_SIZE + (800 * 1024 * 1024) + ROUND_SIZE - 1) / ROUND_SIZE * ROUND_SIZE))
# i am not sure why without this it does not create a large enough root
IMG_SIZE=$(( $IMG_SIZE * 4 ))
truncate -s "${IMG_SIZE}" "${IMG_FILE}"
fdisk -H 255 -S 63 "${IMG_FILE}" <<EOF
o

File diff suppressed because one or more lines are too long