Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4b4b80a68d9a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 11e0b8465c74
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Sep 29, 2019

  1. make-disk-image: replace nixos-install by nix-env calls

    nixos-install can only be called from a machine
    ckesg committed Sep 29, 2019
    Copy the full SHA
    e9bf955 View commit details

Commits on Oct 7, 2019

  1. Merge pull request #70027 from ck3d/fix-ova

    make-disk-image: replace nixos-install by nix-env calls
    markuskowa authored Oct 7, 2019
    Copy the full SHA
    11e0b84 View commit details
Showing with 11 additions and 3 deletions.
  1. +11 −3 nixos/lib/make-disk-image.nix
14 changes: 11 additions & 3 deletions nixos/lib/make-disk-image.nix
Original file line number Diff line number Diff line change
@@ -180,9 +180,17 @@ let format' = format; in let
export NIX_STATE_DIR=$TMPDIR/state
nix-store --load-db < ${closureInfo}/registration
echo "running nixos-install..."
nixos-install --root $root --no-bootloader --no-root-passwd \
--system ${config.system.build.toplevel} --channel ${channelSources} --substituters ""
mkdir -m 0755 -p "$root/etc"
touch "$root/etc/NIXOS"
echo "copying system..."
nix-env --store "$root" --substituters "auto?trusted=1" \
-p "$root/nix/var/nix/profiles/system" --set "${config.system.build.toplevel}" --quiet
echo "copying channel..."
mkdir -p "$root/nix/var/nix/profiles/per-user/root"
nix-env --store "$root" --substituters "auto?trusted=1" \
-p "$root/nix/var/nix/profiles/per-user/root/channels" --set "${channelSources}" --quiet
echo "copying staging root to image..."
cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* /