* Create /etc/nixos if it doesn't exist.
svn path=/nixos/trunk/; revision=7597
This commit is contained in:
parent
5b5b6f9f63
commit
efefd93551
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue