Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163161821
D57221.id178518.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
981 B
Referenced Files
None
Subscribers
None
D57221.id178518.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
@@ -302,7 +302,7 @@
echo "Image will not be bootable"
fi
- diskimage="-p freebsd:=${NANO_DISKIMGDIR}/${NANO_IMG1NAME}"
+ diskimage="-p freebsd:=${NANO_DISKIMGDIR}/${NANO_IMG1NAME}:$(( NANO_SECTS * 512 ))"
if [ "$NANO_IMAGES" -gt 1 ] && [ "$NANO_INIT_IMG2" -gt 0 ] ; then
echo "Duplicating to second image..."
@@ -318,13 +318,13 @@
${bootcode} \
-p freebsd-ufs:="${NANO_OBJ}/_.altroot.part" \
-o "${NANO_OBJ}/_.altroot.image"
- altroot="-p freebsd:=${NANO_OBJ}/_.altroot.image"
+ altroot="-p freebsd:=${NANO_OBJ}/_.altroot.image:+$(( NANO_SECTS * 512 ))"
rm -f "${NANO_OBJ}/_.altroot.part"
else
altroot="-p-"
fi
if [ "${NANO_INIT_IMG2}" -eq 0 ]; then
- altroot="-p freebsd::${CODE_SIZE}b"
+ altroot="-p freebsd::${CODE_SIZE}b:+$(( NANO_SECTS * 512 ))"
fi
# Create Config slice
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 21, 3:53 PM (7 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33507948
Default Alt Text
D57221.id178518.diff (981 B)
Attached To
Mode
D57221: nanobsd: Offset code partition to a track boundary
Attached
Detach File
Event Timeline
Log In to Comment