svn commit: r318810 - in stable/11/release: . tools
Navdeep Parhar
np at FreeBSD.org
Wed May 24 20:33:51 UTC 2017
Author: np
Date: Wed May 24 20:33:49 2017
New Revision: 318810
URL: https://svnweb.freebsd.org/changeset/base/318810
Log:
MFC r307008:
Add the ability to override the size of the swap partition when building
VM images. The default continues to be 1G.
Sponsored by: Chelsio Communications
Modified:
stable/11/release/Makefile.vm
stable/11/release/tools/vmimage.subr
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/release/Makefile.vm
==============================================================================
--- stable/11/release/Makefile.vm Wed May 24 20:29:20 2017 (r318809)
+++ stable/11/release/Makefile.vm Wed May 24 20:33:49 2017 (r318810)
@@ -8,6 +8,7 @@
VMTARGETS= vm-image
VMFORMATS?= vhd vmdk qcow2 raw
VMSIZE?= 20G
+SWAPSIZE?= 1G
VMBASE?= vm
VHD_DESC= Azure, VirtualPC, Hyper-V, Xen disk image
Modified: stable/11/release/tools/vmimage.subr
==============================================================================
--- stable/11/release/tools/vmimage.subr Wed May 24 20:29:20 2017 (r318809)
+++ stable/11/release/tools/vmimage.subr Wed May 24 20:33:49 2017 (r318810)
@@ -11,7 +11,7 @@ trap "cleanup" INT QUIT TRAP ABRT TERM
write_partition_layout() {
if [ -z "${NOSWAP}" ]; then
- SWAPOPT="-p freebsd-swap/swapfs::1G"
+ SWAPOPT="-p freebsd-swap/swapfs::${SWAPSIZE}"
fi
_OBJDIR="$(make -C ${WORLDDIR} -V .OBJDIR)"
More information about the svn-src-stable-11
mailing list