debug flag for image building
This commit is contained in:
parent
debc495165
commit
3de11ae4d9
1 changed files with 4 additions and 2 deletions
|
|
@ -10,7 +10,8 @@
|
|||
install ? [],
|
||||
run ? "",
|
||||
commands ? "",
|
||||
osType ? "linux"
|
||||
osType ? "linux",
|
||||
debug ? false
|
||||
}:
|
||||
let
|
||||
originalImageName = lib.strings.removeSuffix "-vmix" (lib.strings.removeSuffix ".qcow2" originalImage.name);
|
||||
|
|
@ -41,6 +42,7 @@
|
|||
#export LIBGUESTFS_HV="${qemuWrapperScript}"
|
||||
|
||||
${pkgs.guestfs-tools}/bin/virt-customize \
|
||||
${lib.optionalString debug "-v"} \
|
||||
-a ${resultImg} \
|
||||
--smp ${builtins.toString smp} \
|
||||
--memsize ${builtins.toString memSize} \
|
||||
|
|
@ -52,4 +54,4 @@
|
|||
mv ${resultImg} $out
|
||||
'';
|
||||
in
|
||||
pkgs.runCommand customImageName { __noChroot = true; } builderCommand
|
||||
pkgs.runCommand customImageName { __noChroot = true; } builderCommand
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue