summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2015-05-26 00:44:29 +0000
committergjb <gjb@FreeBSD.org>2015-05-26 00:44:29 +0000
commit14c563db5d101c8d06e17d46b92102520a183fe9 (patch)
tree0482e105d51fa2d77178a056222943663070e557
parente8dfad85657458740ad232334919c76a0e47eb84 (diff)
downloadFreeBSD-src-14c563db5d101c8d06e17d46b92102520a183fe9.zip
FreeBSD-src-14c563db5d101c8d06e17d46b92102520a183fe9.tar.gz
MFC r283307:
Use mkimg(1) to create the i386 memstick images, similar to how is done for amd64. The exception here is there is no EFI partition for i386. Sponsored by: The FreeBSD Foundation
-rwxr-xr-xrelease/i386/make-memstick.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/release/i386/make-memstick.sh b/release/i386/make-memstick.sh
index e10b892..27979ae7 100755
--- a/release/i386/make-memstick.sh
+++ b/release/i386/make-memstick.sh
@@ -29,20 +29,13 @@ if [ -e ${2} ]; then
fi
echo '/dev/ufs/FreeBSD_Install / ufs ro,noatime 1 1' > ${1}/etc/fstab
-makefs -B little -o label=FreeBSD_Install ${2} ${1}
+makefs -B little -o label=FreeBSD_Install ${2}.part ${1}
if [ $? -ne 0 ]; then
echo "makefs failed"
exit 1
fi
rm ${1}/etc/fstab
-unit=$(mdconfig -a -t vnode -f ${2})
-if [ $? -ne 0 ]; then
- echo "mdconfig failed"
- exit 1
-fi
-gpart create -s BSD ${unit}
-gpart bootcode -b ${1}/boot/boot ${unit}
-gpart add -t freebsd-ufs ${unit}
-mdconfig -d -u ${unit}
+mkimg -s gpt -b ${1}/boot/pmbr -p freebsd-boot:=${1}/boot/gptboot -p freebsd-ufs:=${2}.part -p freebsd-swap::1M -o ${2}
+rm ${2}.part
OpenPOWER on IntegriCloud