mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
Fix installing the Nixpkgs channel on the installation media
And test that it got installed correctly.
This commit is contained in:
parent
8c6f9223d0
commit
cc2eeef4ab
4 changed files with 18 additions and 7 deletions
|
@ -181,7 +181,8 @@ let format' = format; in let
|
|||
nix-store --load-db < ${closureInfo}/registration
|
||||
|
||||
echo "running nixos-install..."
|
||||
nixos-install --root $root --no-bootloader --no-root-passwd --closure ${config.system.build.toplevel} --substituters ""
|
||||
nixos-install --root $root --no-bootloader --no-root-passwd \
|
||||
--system ${config.system.build.toplevel} --channel ${channelSources} --substituters ""
|
||||
|
||||
echo "copying staging root to image..."
|
||||
cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue