[Fai-commit] [faiproject/fai] de73e0: task_repository: do not fail if /etc/resolv.conf i...

GitHub noreply at github.com
Fri Nov 2 14:14:49 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/faiproject/fai
  Commit: de73e06ff63c8ba3ef232ce5d25fd51422552531
      https://github.com/faiproject/fai/commit/de73e06ff63c8ba3ef232ce5d25fd51422552531
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-11-02 (Fri, 02 Nov 2012)

  Changed paths:
    M lib/subroutines

  Log Message:
  -----------
  task_repository: do not fail if /etc/resolv.conf is an existing symlink

If /etc/resolv.conf inside FAI_ROOT exists already and is set up
as symlink then execution fails with:

| fcopy: Nonexisting directory /etc/grml/fai/config/files/etc/resolv.conf. No files copied.
| cp: `/etc/resolv.conf' and `/some/path/etc/resolv.conf' are the same file

If the fcopy command fails test whether $FAI_ROOT/etc/resolv.conf
is a symlink already and if it points to the same file as
/etc/resolv.conf then just echo an informational message but do
nothing, otherwise just do the copy command as usual.





More information about the Fai-commit mailing list