Page MenuHomeFreeBSD

D57221.id178518.diff
No OneTemporary

D57221.id178518.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
@@ -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

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)

Event Timeline