kdump-steamos: Move configuration file out of /etc
This patch main goal is to "un-Debianize" the configuration file for kdump-steamos - thanks Emil (@xexaxo) for the discussions; it is with a bit of a heavy heart I do that, but let's comply with the modern distros ;-) We hereby put the config file in a more standard path: /usr/share. Usually users could override that with /etc/ file, but not in this case, or at least, not for now. Kdump/pstore is expected to work quietly, with no users' interference. Advanced users might want to play with the configs though; and those can just go ahead and edit the /usr/share/kdump/kdump.conf - it's all documented in the README. In the future we can improve that by having the override mechanism with the /etc file, let's see if we have a demand for that. Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
4
Makefile
4
Makefile
@ -1,7 +1,7 @@
|
||||
prefix := /usr
|
||||
sysconfdir := /etc
|
||||
|
||||
libdir := $(prefix)/lib
|
||||
sharedir := $(prefix)/share
|
||||
|
||||
systemdunitsdir := $(shell pkg-config --define-variable=prefix=$(prefix) --variable=systemdsystemunitdir systemd 2>/dev/null \
|
||||
|| echo $(libdir)/systemd/system/)
|
||||
@ -13,7 +13,6 @@ dracutmodulesdir := $(shell pkg-config --define-variable=prefix=$(prefix) --vari
|
||||
all:
|
||||
|
||||
install: all
|
||||
install -D -m0644 kdump.etc $(DESTDIR)$(sysconfdir)/default/kdump
|
||||
install -D -m0644 kdump-steamos.service $(DESTDIR)$(systemdunitsdir)/kdump-steamos.service
|
||||
install -D -m0644 20-kdump-steamos.conf $(DESTDIR)$(sysctldir)/20-kdump-steamos.conf
|
||||
install -D -m0755 kdump-collect.sh $(DESTDIR)$(dracutmodulesdir)/55kdump/kdump-collect.sh
|
||||
@ -22,3 +21,4 @@ install: all
|
||||
install -D -m0755 kdump-load.sh $(DESTDIR)$(libdir)/kdump/kdump-load.sh
|
||||
install -D -m0755 submit-report.sh $(DESTDIR)$(libdir)/kdump/submit-report.sh
|
||||
install -D -m0755 submitter-load.sh $(DESTDIR)$(libdir)/kdump/submitter-load.sh
|
||||
install -D -m0644 kdump.conf $(DESTDIR)$(sharedir)/kdump/kdump.conf
|
||||
|
||||
Reference in New Issue
Block a user