* Create /etc/nixos if it doesn't exist.

svn path=/nixos/trunk/; revision=7597
This commit is contained in:
Eelco Dolstra 2007-01-09 21:28:08 +00:00
parent 5b5b6f9f63
commit efefd93551

View file

@ -131,6 +131,7 @@ chroot $mountPoint @nix@/bin/nix-env \
# Copy the configuration to /etc/nixos.
targetConfig=$mountPoint/etc/nixos/configuration.nix
mkdir -p $(dirname $targetConfig)
if test -e $targetConfig -o -L $targetConfig; then
mv $targetConfig $targetConfig.backup-$(date "+%Y%m%d%H%M%S")
fi