Fix VirtualBox image generation: switch-to-configuration in chroot needs /bin/sh

This commit is contained in:
Rob Vermaas 2013-01-04 10:58:56 +01:00
parent 9aa69885f0
commit 207d30b6f3

View file

@ -63,6 +63,10 @@ with pkgs.lib;
mkdir -p /mnt/etc/nixos
cp ${./nova-config.nix} /mnt/etc/nixos/configuration.nix
# `switch-to-configuration' requires a /bin/sh
mkdir -p /mnt/bin
ln -s ${config.system.build.binsh}/bin/sh /mnt/bin/sh
# Generate the GRUB menu.
chroot /mnt ${config.system.build.toplevel}/bin/switch-to-configuration boot