Page MenuHomeFreeBSD

D57221.id178676.diff
No OneTemporary

D57221.id178676.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
@@ -306,7 +306,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..."
@@ -322,13 +322,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

Mime Type
text/plain
Expires
Tue, Sep 8, 4:40 AM (4 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38433873
Default Alt Text
D57221.id178676.diff (981 B)

Event Timeline