Merge: runInLinuxVM: fix createEmptyImage
/preVM
case (#358705)
This commit is contained in:
commit
626d3e44e5
@ -99,7 +99,6 @@ lib.makeExtensible (final: {
|
|||||||
inherit memSize;
|
inherit memSize;
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
rmdir "$out"
|
|
||||||
mkdir workspace
|
mkdir workspace
|
||||||
mkfs -t ext3 -b 4096 /dev/${vmTools.hd}
|
mkfs -t ext3 -b 4096 /dev/${vmTools.hd}
|
||||||
mount /dev/${vmTools.hd} workspace
|
mount /dev/${vmTools.hd} workspace
|
||||||
|
@ -240,6 +240,10 @@ rec {
|
|||||||
|
|
||||||
|
|
||||||
vmRunCommand = qemuCommand: writeText "vm-run" ''
|
vmRunCommand = qemuCommand: writeText "vm-run" ''
|
||||||
|
if [ -f "''${NIX_ATTRS_SH_FILE-}" ]; then
|
||||||
|
source "$NIX_ATTRS_SH_FILE"
|
||||||
|
fi
|
||||||
|
source $stdenv/setup
|
||||||
export > saved-env
|
export > saved-env
|
||||||
|
|
||||||
PATH=${coreutils}/bin
|
PATH=${coreutils}/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user