services: 'file-union' makes sure each source file exists.
authorLudovic Courtès <ludo@gnu.org>
Wed, 3 Feb 2016 21:26:33 +0000 (22:26 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 3 Feb 2016 21:28:28 +0000 (22:28 +0100)
commit37dd1e6a34698e5bccaf99b6681c503b1a4e5efc
treeb326e9fae56e1476b9e884f4de67992de61b2467
parent240b57f0ca576708ebf6cfa0dfe2803fa9ff2323
services: 'file-union' makes sure each source file exists.

Before that, specifying an invalid timezone in 'operating-system' would
lead to a dangling symlink in the 'etc' directory, which in turn would
lead to a kernel panic at boot time.

Reported by pizzaiolo on #guix.

* gnu/services.scm (file-union): Add 'stat' call for SOURCE.
gnu/services.scm