mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
* Don't generate a manifest for the CD anymore, just use the
copy-from-other-stores substituter to copy paths directly from the Nix store on the CD. svn path=/nixos/trunk/; revision=12826
This commit is contained in:
parent
5e88ff8269
commit
212d5ceff5
@ -42,9 +42,6 @@ done
|
||||
printRegistration=1 perl $pathsFromGraph closure-* > nix-path-registration
|
||||
echo "nix-path-registration=nix-path-registration" >> pathlist
|
||||
|
||||
printManifest=1 perl $pathsFromGraph closure-* > MANIFEST
|
||||
echo "MANIFEST=MANIFEST" >> pathlist
|
||||
|
||||
|
||||
# Add symlinks to the top-level store objects.
|
||||
for ((n = 0; n < ${#objects[*]}; n++)); do
|
||||
|
@ -60,6 +60,9 @@ rec {
|
||||
# Firewire support. Not tested.
|
||||
"ohci1394" "sbp2"
|
||||
|
||||
# Virtio (QEMU, KVM etc.) support.
|
||||
"virtio_net" "virtio_pci" "virtio_blk" "virtio_balloon"
|
||||
|
||||
# Wait for SCSI devices to appear.
|
||||
"scsi_wait_scan"
|
||||
|
||||
|
@ -101,6 +101,7 @@ mkdir -m 1777 -p \
|
||||
# Get the store paths to copy from the references graph.
|
||||
storePaths=$(@perl@/bin/perl @pathsFromGraph@ @nixClosure@)
|
||||
|
||||
|
||||
# Copy Nix to the Nix store on the target device.
|
||||
echo "copying Nix to $mountPoint...."
|
||||
for i in $storePaths; do
|
||||
@ -124,15 +125,9 @@ mkdir -m 0755 -p $mountPoint/bin
|
||||
ln -sf @shell@ $mountPoint/bin/sh
|
||||
|
||||
|
||||
# Pull the manifest on the CD so that everything in the Nix store on
|
||||
# the CD can be copied directly.
|
||||
echo "registering substitutes to speed up builds..."
|
||||
rm -f $mountPoint/nix/var/nix/manifests/*
|
||||
if test -e /MANIFEST; then
|
||||
chroot $mountPoint @nix@/bin/nix-pull file:///mnt/MANIFEST
|
||||
fi
|
||||
rm -f $mountPoint/tmp/inst-store
|
||||
ln -s /mnt/nix/store $mountPoint/tmp/inst-store
|
||||
# Make the build below copy paths from the CD if possible. Note that
|
||||
# /mnt in the chroot is the root of the CD.
|
||||
export NIX_OTHER_STORES=/mnt/nix:$NIX_OTHER_STORES
|
||||
|
||||
|
||||
# Do a nix-pull to speed up building.
|
||||
|
@ -29,7 +29,7 @@ if test "$action" = "switch" -o "$action" = "boot"; then
|
||||
@grub@/sbin/grub-install "@grubDevice@" --no-floppy --recheck
|
||||
fi
|
||||
else
|
||||
echo "Warning: don't know how to make this configuration bootable" 1>&2
|
||||
echo "Warning: don't know how to make this configuration bootable; please set \`boot.grubDevice'." 1>&2
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user