mirror of
https://codeberg.org/guix/guix.git
synced 2026-04-28 06:34:05 +00:00
gnu: pacemaker: Configure local state directory.
Before this commit, pacemaker would look in `/gnu/store/...-pacemaker/var/` for its state, which would be counterproductive. Use `/var` from the system instead, and disable the make target that would create the local state directory. * gnu/packages/high-availability.scm (pacemaker) [arguments] <#:phases>: Add phase to remove `/var` creation. <#:configure-flags>: Set local state directory to `/var`. Change-Id: I4ef72bd6dabe1ed21fd356fe2eb10cee223aaf42 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Modified-by: Ludovic Courtès <ludo@gnu.org> Merges: #8033
This commit is contained in:
committed by
Ludovic Courtès
parent
6a5005d62e
commit
85ccd32fe6
@@ -489,11 +489,22 @@ lost.
|
||||
"0b9d2i22ghyjarwi1c596q5mf7gj1k04k784hnmrd2d4x9hgv9ax"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list #:configure-flags #~(list "--with-corosync" "--disable-static"
|
||||
(list #:configure-flags #~(list "--with-corosync"
|
||||
"--disable-static"
|
||||
"--localstatedir=/var"
|
||||
(string-append "--with-initdir="
|
||||
#$output "/etc/init.d")
|
||||
(string-append "--with-ocfdir="
|
||||
#$output "/lib"))))
|
||||
#$output "/lib"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'configure 'pre-configure
|
||||
(lambda _
|
||||
;; Do not attempt to install /var.
|
||||
(substitute* '("Makefile.am"
|
||||
"daemons/schedulerd/Makefile.am")
|
||||
(("install-exec-local:")
|
||||
"install-exec-local-disabled:")))))))
|
||||
(native-inputs (list autoconf
|
||||
automake
|
||||
cmocka
|
||||
|
||||
Reference in New Issue
Block a user