diff --git a/glicid/packages/linux.scm b/glicid/packages/linux.scm index 18cf11f..b3d11d3 100644 --- a/glicid/packages/linux.scm +++ b/glicid/packages/linux.scm @@ -6,6 +6,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) #:use-module (guix build-system go) + #:use-module (gnu packages) #:use-module (gnu packages backup) #:use-module (gnu packages compression) #:use-module (gnu packages cryptsetup) @@ -215,6 +216,27 @@ mapper. Kernel components are part of Linux-libre.") (define-public lvm2 (package - (inherit lvm2-past-20311) - (version "2.03.221-reallyoldversion") + (inherit gnu:lvm2) + (version "2.03.22") + (source (origin + (method url-fetch) + (uri (list (string-append "https://sourceware.org/ftp/lvm2/LVM2." + version ".tgz") + (string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2." + version ".tgz"))) + (sha256 + (base32 + "0z6w6bknhwh1n3qfkb5ij6x57q3wjf28lq3l8kh7rkhsplinjnjc")) + (patches (search-patches "glicid/packages/patches/lvm2-no-systemd.patch")) + (modules '((guix build utils))) + (snippet + '(begin + (use-modules (guix build utils)) + + ;; Honor sysconfdir. + (substitute* "make.tmpl.in" + (("^confdir = .*$") + "confdir = @sysconfdir@\n") + (("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@") + "DEFAULT_SYS_DIR = @sysconfdir@")))))) ))