Skip to content

Commit

Permalink
save /etc/hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jul 28, 2016
1 parent 3bcf2e3 commit c04d9b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/subroutines
Expand Up @@ -1002,8 +1002,8 @@ task_repository () {
[ -f /etc/resolv.conf ] && cp -v /etc/resolv.conf $FAI_ROOT/etc
fi
fi
if ! fcopy -BMv /etc/hosts ; then
[ X$FAI_ROOT = X/ ] || cp -v /etc/hosts $FAI_ROOT/etc
if ! fcopy -Mv /etc/hosts ; then
[ X$FAI_ROOT = X/ ] || cp -bvS.orig /etc/hosts $FAI_ROOT/etc
fi

# apt specific things
Expand Down

0 comments on commit c04d9b6

Please sign in to comment.