Page MenuHomeFreeBSD

D57311.id178869.diff
No OneTemporary

D57311.id178869.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
@@ -220,6 +220,7 @@
# XXX: pick up cached boot* files, they may not be in image anymore.
if [ -f ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ]; then
gpart bootcode -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOTFLAGS} ${MD}
+ boot0cfg ${NANO_BOOT0CFG} ${MD}
fi
echo "Writing code image..."
@@ -288,6 +289,9 @@
IMG=${NANO_DISKIMGDIR}/${NANO_IMGNAME}
if [ -f "${NANO_WORLDDIR}/${NANO_BOOTLOADER}" ]; then
+ [ -n "${NANO_NOPRIV_BUILD}" ] && chmod 666 ${NANO_WORLDDIR}/${NANO_BOOTLOADER}
+ boot0cfg ${NANO_BOOT0CFG} ${NANO_WORLDDIR}/${NANO_BOOTLOADER}
+ [ -n "${NANO_NOPRIV_BUILD}" ] && chmod 444 ${NANO_WORLDDIR}/${NANO_BOOTLOADER}
bootloader="-b ${NANO_WORLDDIR}/${NANO_BOOTLOADER}"
else
echo "Image will not be bootable"

File Metadata

Mime Type
text/plain
Expires
Wed, Sep 9, 3:59 PM (16 h, 44 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33627046
Default Alt Text
D57311.id178869.diff (894 B)

Event Timeline