Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143357005
D47653.id146629.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
716 B
Referenced Files
None
Subscribers
None
D47653.id146629.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D47653: nanobsd: Remove dependency on bsdlabel
Attached
Detach File
Event Timeline
Log In to Comment