This is somewhat an intrusive change, but necessary if we want to upstream the kdump tooling while allowing great extent of customizations on SteamOS. With this change, we have now a kdump.d folder on /usr/share, that holds configuration files in the same way sysctl.d does. In other words, we can easily override default settings by just having more configuration files, which are sourced following natural name sorting, i.e., we have now the concept of config file precedence in kdump. Our default config file is called 00-default, so we eventually might have a 01-steamos e.g., with Deck's custom settings. This is planned to other package though. Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
24 lines
1.2 KiB
Makefile
24 lines
1.2 KiB
Makefile
prefix := /usr
|
|
|
|
libdir := $(prefix)/lib
|
|
sharedir := $(prefix)/share
|
|
|
|
systemdunitsdir := $(shell pkg-config --define-variable=prefix=$(prefix) --variable=systemdsystemunitdir systemd 2>/dev/null \
|
|
|| echo $(libdir)/systemd/system/)
|
|
sysctldir := $(shell pkg-config --define-variable=prefix=$(prefix) --variable=sysctldir systemd 2>/dev/null \
|
|
|| echo $(libdir)/sysctl.d/)
|
|
dracutmodulesdir := $(shell pkg-config --define-variable=prefix=$(prefix) --variable=dracutmodulesdir dracut 2>/dev/null \
|
|
|| echo $(libdir)/dracut/modules.d/)
|
|
|
|
all:
|
|
|
|
install: all
|
|
install -D -m0644 kdump-init.service $(DESTDIR)$(systemdunitsdir)/kdump-init.service
|
|
install -D -m0644 20-panic-sysctls.conf $(DESTDIR)$(sysctldir)/20-panic-sysctls.conf
|
|
install -D -m0755 kdump-collect.sh $(DESTDIR)$(dracutmodulesdir)/55kdump/kdump-collect.sh
|
|
install -D -m0755 module-setup.sh $(DESTDIR)$(dracutmodulesdir)/55kdump/module-setup.sh
|
|
install -D -m0644 README.md $(DESTDIR)$(dracutmodulesdir)/55kdump/README
|
|
install -D -m0755 kdump-load.sh $(DESTDIR)$(libdir)/kdump/kdump-load.sh
|
|
install -D -m0755 save-dumps.sh $(DESTDIR)$(libdir)/kdump/save-dumps.sh
|
|
install -D -m0644 00-default.conf $(DESTDIR)$(sharedir)/kdump.d/00-default
|