Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149031557
D47653.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
723 B
Referenced Files
None
Subscribers
None
D47653.id.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 freebsd-ufs -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
Sun, Mar 22, 10:11 PM (17 m, 45 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30141778
Default Alt Text
D47653.id.diff (723 B)
Attached To
Mode
D47653: nanobsd: Remove dependency on bsdlabel
Attached
Detach File
Event Timeline
Log In to Comment