Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171092229
D57311.id178869.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
894 B
Referenced Files
None
Subscribers
None
D57311.id178869.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
@@ -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
Details
Attached
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)
Attached To
Mode
D57311: nanobsd: Restore boot0cfg functionality
Attached
Detach File
Event Timeline
Log In to Comment