mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
make-single-disk-zfs-image: make memSize configurable
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
This commit is contained in:
parent
0fa36ea34f
commit
30d1e55e25
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue