mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Add the ability to override the size of the swap partition when building
VM images. The default continues to be 1G. Reviewed by: gjb@ Sponsored by: Chelsio Communications
This commit is contained in:
parent
b422efa4c1
commit
eb46c98711
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307008
@ -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
|
||||
|
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user