Page MenuHomeFreeBSD

D57216.id178513.diff
No OneTemporary

D57216.id178513.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
@@ -111,7 +111,7 @@
IMG=${NANO_DISKIMGDIR}/${NANO_IMG1NAME}
MNT=${NANO_OBJ}/_.mnt
mkdir -p ${MNT}
- CODE_SIZE=$(head -n 1 ${NANO_LOG}/_.partitioning | awk '{ print $2 }')
+ CODE_SIZE=$(awk '$3 == 1 {print $2}' "${NANO_LOG}/_.partitioning")
if [ "${NANO_MD_BACKING}" = "swap" ] ; then
MD=$(mdconfig -a -t swap -s ${CODE_SIZE} -x ${NANO_SECTS} \
@@ -161,7 +161,7 @@
(
IMG=${NANO_DISKIMGDIR}/${NANO_IMG1NAME}
- CODE_SIZE=$(head -n 1 "${NANO_LOG}/_.partitioning" | awk '{ print $2 }')
+ CODE_SIZE=$(awk '$3 == 1 {print $2}' "${NANO_LOG}/_.partitioning")
CODE_SIZE=$(_xxx_adjust_code_size "$CODE_SIZE")
echo "Writing code image..."
@@ -290,7 +290,7 @@
(
local altroot bootloader cfgimage dataimage diskimage
- CODE_SIZE=$(head -n 1 "${NANO_LOG}/_.partitioning" | awk '{ print $2 }')
+ CODE_SIZE=$(awk '$3 == 1 {print $2}' "${NANO_LOG}/_.partitioning")
CODE_SIZE=$(_xxx_adjust_code_size "$CODE_SIZE")
IMG=${NANO_DISKIMGDIR}/${NANO_IMGNAME}

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 28, 3:10 AM (1 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37403493
Default Alt Text
D57216.id178513.diff (1 KB)

Event Timeline