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