make-single-disk-zfs-image: make memSize configurable

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
This commit is contained in:
Sirio Balmelli 2023-10-26 23:51:45 +02:00
parent 0fa36ea34f
commit 30d1e55e25
No known key found for this signature in database
GPG key ID: 0437A96EFE4C426E

View file

@ -21,6 +21,9 @@
, # size of the FAT partition, in megabytes. , # size of the FAT partition, in megabytes.
bootSize ? 1024 bootSize ? 1024
, # memory allocated for virtualized build instance
memSize ? 1024
, # The size of the root partition, in megabytes. , # The size of the root partition, in megabytes.
rootSize ? 2048 rootSize ? 2048
@ -230,7 +233,7 @@ let
).runInLinuxVM ( ).runInLinuxVM (
pkgs.runCommand name pkgs.runCommand name
{ {
memSize = 1024; inherit memSize;
QEMU_OPTS = "-drive file=$rootDiskImage,if=virtio,cache=unsafe,werror=report"; QEMU_OPTS = "-drive file=$rootDiskImage,if=virtio,cache=unsafe,werror=report";
preVM = '' preVM = ''
PATH=$PATH:${pkgs.qemu_kvm}/bin PATH=$PATH:${pkgs.qemu_kvm}/bin