diff options
author | Brice Waegeneire <brice@waegenei.re> | 2020-05-14 00:25:42 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-05-14 11:25:46 +0300 |
commit | 99f2c9347053b7be78fed96d1b8e4a5cefc05a8c (patch) | |
tree | 8efc8b761415786784b437b3c389fa1906c41164 | |
parent | 7d18deb22ec2503c6f97bd2d0e37db976d6daa7e (diff) | |
download | patches-99f2c9347053b7be78fed96d1b8e4a5cefc05a8c.tar patches-99f2c9347053b7be78fed96d1b8e4a5cefc05a8c.tar.gz |
gnu: libblockdev: Set default configuration directory.
Fix error from 'udisks': “Failed to get contents of the config
dir (/etc/libblockdev/conf.d/)Error opening directory
"/etc/libblockdev/conf.d/": No such file or directory.”
* gnu/packages/disk.scm (libblockdev)[arguments]: Add phase
'patch-configuration-directory'.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/disk.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index e410e29e88..6b86f6ff76 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -802,6 +802,14 @@ to create devices with respective mappings for the ATARAID sets discovered.") (base32 "15c7g2gbkahmy8c6677pvbvblan5h8jxcqqmn6nlvqwqynq2mkjm")))) (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-configuration-directory + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "src/lib/blockdev.c" + (("/etc/libblockdev/conf.d/" path) (string-append out path))))))))) (native-inputs `(("gobject-introspection" ,gobject-introspection) ("pkg-config" ,pkg-config) |