File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 40
40
nix
41
41
util-linux
42
42
findutils
43
+ ( pkgs . xcp . overrideAttrs ( old : {
44
+ # https://github.com/tarka/xcp/pull/56
45
+ patches = ( old . patches or [ ] ) ++ [
46
+ ( fetchpatch {
47
+ url = "https://github.com/tarka/xcp/commit/8c00cef85c4ae6ffa4f49a59e5f64f68f6407000.patch" ;
48
+ sha256 = "sha256-pwgtA/36YPRtpn4jmOcb44xjiDfEKmpXdJDSvqfGQuk=" ;
49
+ } )
50
+ ] ;
51
+ } ) )
43
52
] ++ cfg . extraDependencies ;
44
53
preVM = ''
45
54
${ lib . concatMapStringsSep "\n " ( disk : "${ pkgs . qemu } /bin/qemu-img create -f ${ imageFormat } ${ disk . name } .${ imageFormat } ${ disk . imageSize } " ) ( lib . attrValues diskoCfg . devices . disk ) }
88
97
89
98
# We copy files with cp because `nix copy` seems to have a large memory leak
90
99
mkdir -p ${ systemToInstall . config . disko . rootMountPoint } /nix/store
91
- xargs cp --recursive --target ${ systemToInstall . config . disko . rootMountPoint } /nix/store < ${ closureInfo } /store-paths
100
+ xargs xcp --recursive --target-directory ${ systemToInstall . config . disko . rootMountPoint } /nix/store < ${ closureInfo } /store-paths
92
101
93
102
${ systemToInstall . config . system . build . nixos-install } /bin/nixos-install --root ${ systemToInstall . config . disko . rootMountPoint } --system ${ systemToInstall . config . system . build . toplevel } --keep-going --no-channel-copy -v --no-root-password --option binary-caches ""
94
103
umount -Rv ${ systemToInstall . config . disko . rootMountPoint }
You can’t perform that action at this time.
0 commit comments