diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-02-02 18:17:30 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-02-02 21:16:59 +0100 |
commit | 400ed6acdd275f1135aad520baa7379eb6b8cff6 (patch) | |
tree | ccb48ae941e2e96b0ea47ccc4677f26a8e7a12ed /gnu/packages/linux.scm | |
parent | 81fc64da7e9fa5eed782d0c52ebd5c76598e045a (diff) | |
download | guix-patches-400ed6acdd275f1135aad520baa7379eb6b8cff6.tar guix-patches-400ed6acdd275f1135aad520baa7379eb6b8cff6.tar.gz |
gnu: eudev: Add variant that depends on libblkid.
This fixes a bug whereby /dev/disk/by-{label,id} would be missing on
GuixSD (/dev/disk/by-id would still contain device-mapped partitions
though.)
Reported by Mark H Weaver <mhw@netris.org>.
* gnu/packages/linux.scm (eudev-with-blkid): New variable.
* gnu/services/base.scm (udev-service): #:udev defaults to
EUDEV-WITH-BLKID.
* gnu/system.scm (%base-packages): Replace EUDEV with EUDEV-WITH-BLKID.
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r-- | gnu/packages/linux.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 6e75bacb9c..9d359e3696 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> @@ -1570,6 +1570,7 @@ from the module-init-tools project.") (define-public eudev ;; The post-systemd fork, maintained by Gentoo. + ;; TODO: Merge with 'eudev-with-blkid' below at an opportune time. (package (name "eudev") (version "3.1.5") @@ -1596,6 +1597,18 @@ device nodes from /dev/, handles hotplug events and loads drivers at boot time.") (license license:gpl2+))) +(define-public eudev-with-blkid + ;; TODO: Merge with 'eudev' above at an opportune time. + (package + (inherit eudev) + (name "eudev-with-blkid") + (inputs + ;; When linked against libblkid, eudev can populate /dev/disk/by-label + ;; and similar; it also installs the '60-persistent-storage.rules' file, + ;; which contains the rules to do that. + `(("util-linux" ,util-linux) ;for blkid + ,@(package-inputs eudev))))) + (define-public lvm2 (package (name "lvm2") |