Page MenuHomeFreeBSD

D47653.id146629.diff
No OneTemporary

D47653.id146629.diff

diff --git a/tools/tools/nanobsd/legacy.sh b/tools/tools/nanobsd/legacy.sh
--- a/tools/tools/nanobsd/legacy.sh
+++ b/tools/tools/nanobsd/legacy.sh
@@ -116,14 +116,15 @@
trap "echo 'Running exit trap code' ; df -i ${MNT} ; umount ${MNT} || true ; mdconfig -d -u $MD" 1 2 15 EXIT
- bsdlabel -w ${MD}
+ gpart create -s bsd "${MD}"
+ gpart add -t '!0' -b 16 "${MD}"
if [ -f ${NANO_WORLDDIR}/boot/boot ]; then
echo "Making bootable partition"
gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD}
else
echo "Partition will not be bootable"
fi
- bsdlabel ${MD}
+ gpart list ${MD}
# Create first image
populate_slice /dev/${MD}${NANO_PARTITION_ROOT} ${NANO_WORLDDIR} ${MNT} "${NANO_ROOT}"

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 30, 8:51 AM (5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28097727
Default Alt Text
D47653.id146629.diff (716 B)

Event Timeline