Allow _.disk.image to be specified.
Submitted by: ask at develooper dot com (reworked to new structure) PR: 199191 Sponsored by: Netflix MFC After: 3 days
This commit is contained in:
parent
9c3163dca4
commit
df6c7936fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321638
@ -71,6 +71,7 @@ NANO_PMAKE="make -j 3"
|
||||
|
||||
# The default name for any image we create.
|
||||
NANO_IMGNAME="_.disk.full"
|
||||
NANO_IMG1NAME="_.disk.image"
|
||||
|
||||
# Options to put in make.conf during buildworld only
|
||||
CONF_BUILD=' '
|
||||
@ -652,7 +653,7 @@ last_orders ( ) (
|
||||
# Redefine this function with any last orders you may have
|
||||
# after the build completed, for instance to copy the finished
|
||||
# image to a more convenient place:
|
||||
# cp ${NANO_DISKIMGDIR}/_.disk.image /home/ftp/pub/nanobsd.disk
|
||||
# cp ${NANO_DISKIMGDIR}/${NANO_IMG1NAME} /home/ftp/pub/nanobsd.disk
|
||||
true
|
||||
)
|
||||
|
||||
@ -919,6 +920,7 @@ set_defaults_and_export ( ) {
|
||||
export_var NANO_HEADS
|
||||
export_var NANO_IMAGES
|
||||
export_var NANO_IMGNAME
|
||||
export_var NANO_IMG1NAME
|
||||
export_var NANO_MAKE
|
||||
export_var NANO_MAKE_CONF_BUILD
|
||||
export_var NANO_MAKE_CONF_INSTALL
|
||||
|
@ -191,8 +191,9 @@ create_diskimage ( ) (
|
||||
fi
|
||||
|
||||
if ${do_copyout_partition} ; then
|
||||
echo "Writing out _.disk.image..."
|
||||
dd conv=sparse if=/dev/${MD}${NANO_SLICE_ROOT} of=${NANO_DISKIMGDIR}/_.disk.image bs=64k
|
||||
echo "Writing out ${NANO_IMG1NAME}..."
|
||||
dd conv=sparse if=/dev/${MD}${NANO_SLICE_ROOT} \
|
||||
of=${NANO_DISKIMGDIR}/${NANO_IMG1NAME} bs=64k
|
||||
fi
|
||||
mdconfig -d -u $MD
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user