file-systems: Do not truncate mount points that already exist.
authorLudovic Courtès <ludo@gnu.org>
Sat, 17 Oct 2015 09:57:38 +0000 (11:57 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 17 Oct 2015 09:57:38 +0000 (11:57 +0200)
commit78981bb9bd66ba65af133fda6474664c330f30c4
tree5b228e519e185aea3890d8eb125945f1e2b3fc78
parent0e3cc3116de1145545a51d598bece890eb6d8424
file-systems: Do not truncate mount points that already exist.

Reported by David Thompson <dthompson2@worcester.edu>
at <https://lists.gnu.org/archive/html/guix-devel/2015-10/msg00284.html>.

* gnu/build/file-systems.scm (mount-file-system): When SOURCE matches
  'regular-file?', do not create MOUNT-POINT if it already exists.  This
  fixes a bug whereby we would be truncating MOUNT-POINT if it already
  existed.
gnu/build/file-systems.scm