kdump/systemd: Drop the systemd loader appoach

Currently we have a loader script, that just calls the dump saving
script and exits successfully. This was meant to prevent potential
boot stalls due to systemd delays, but it proved to be just
unnecessary...so, let's drop it here.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
Guilherme G. Piccoli
2022-11-23 18:17:20 -03:00
parent 0bfd8fed32
commit 11e799c1bb
3 changed files with 1 additions and 14 deletions

View File

@ -20,5 +20,4 @@ install: all
install -D -m0644 README.md $(DESTDIR)$(dracutmodulesdir)/55kdump/README
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

View File

@ -10,7 +10,7 @@ Description=SteamOS kdump loader boot-time service
Type=oneshot
StandardOutput=journal
ExecStartPre=/usr/lib/kdump/kdump-load.sh
ExecStart=/usr/lib/kdump/submitter-load.sh
ExecStart=/usr/lib/kdump/submit-report.sh
RemainAfterExit=yes
[Install]

View File

@ -1,12 +0,0 @@
#!/bin/bash
#
# SPDX-License-Identifier: LGPL-2.1+
#
# Copyright (c) 2022 Valve.
#
# This is the systemd loader for the SteamOS kdump log submitter;
# it's invoked by systemd, basically it just loads a detached
# process and exits successfuly, in order to prevent boot hangs.
/usr/lib/kdump/submit-report.sh & disown
exit 0