forked from mirrors/nixpkgs
nixos-install: Fix copying symlink resolv.conf.
On some non-NixOS systems (for example those using "resolvconf"), /etc/resolv.conf is a symlink. So let's dereference when copying hasts and resolv.conf. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
474731b29e
commit
6ebe4a6a52
|
@ -81,7 +81,7 @@ mount -t tmpfs -o "mode=0755" none $mountPoint/var/setuid-wrappers
|
|||
rm -rf $mountPoint/var/run
|
||||
ln -s /run $mountPoint/var/run
|
||||
rm -f $mountPoint/etc/{resolv.conf,hosts}
|
||||
cp -f /etc/resolv.conf /etc/hosts $mountPoint/etc/
|
||||
cp -Lf /etc/resolv.conf /etc/hosts $mountPoint/etc/
|
||||
|
||||
|
||||
if [ -n "$runChroot" ]; then
|
||||
|
|
Loading…
Reference in a new issue