Deleted Added
full compact
10c10
< # $FreeBSD: head/release/i386/make-memstick.sh 219584 2011-03-13 01:38:24Z nwhitehorn $
---
> # $FreeBSD: head/release/i386/make-memstick.sh 219856 2011-03-22 01:14:53Z nwhitehorn $
34a35
> echo '/dev/gpt/FreeBSD_Install / ufs rw,noatime 1 1' > ${1}/etc/fstab
36c37
< makefs ${tempfile} ${1}
---
> makefs -B little ${tempfile} ${1}
40a42
> rm ${1}/etc/fstab
49c51
< blocks=$(($filesize / ${BLOCKSIZE} + 2))
---
> blocks=$(($filesize / ${BLOCKSIZE} + 256))
62,66c64,67
< fdisk -BIq /dev/${unit}
< if [ $? -ne 0 ]; then
< echo "fdisk failed"
< exit 1
< fi
---
> gpart create -s GPT ${unit}
> gpart add -t freebsd-boot -s 64K ${unit}
> gpart bootcode -b ${1}/boot/pmbr -p ${1}/boot/gptboot -i 1 ${unit}
> gpart add -t freebsd-ufs -l FreeBSD_Install ${unit}
68c69
< bsdlabel -B -w /dev/${unit}
---
> dd if=${tempfile} of=/dev/${unit}p2 bs=$BLOCKSIZE conv=sync
70,75d70
< echo "bsdlabel failed"
< exit 1
< fi
<
< dd if=${tempfile} of=/dev/${unit}a bs=$BLOCKSIZE conv=sync
< if [ $? -ne 0 ]; then