install: Gracefully handle corner cases with 'guix system init foo /'.
commita4888e2e0fb010836930f09a3822580a04fd7e82
authorLudovic Courtès <ludo@gnu.org>
Wed, 10 Sep 2014 19:39:47 +0000 (10 21:39 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 10 Sep 2014 19:39:47 +0000 (10 21:39 +0200)
tree4f7676810b8136a778970c3f3bc1c38ed1a46722
parent6e4532e8fec5b31fad38be82ada46b5a70952b91
install: Gracefully handle corner cases with 'guix system init foo /'.

* gnu/build/install.scm (evaluate-populate-directive): Wrap body in
  "catch 'system-error", and report clear errors.  In the symlink case,
  retry up EEXIST.
  (populate-root-file-system): Remove /var/guix/profiles/system-1-link
  before attempting to create it.
gnu/build/install.scm