Github messages for voidlinux
 help / color / mirror / Atom feed
From: klarasm <klarasm@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] runit-kdump: fix conflict with /usr/lib/sysctl.d/10-void.conf
Date: Thu, 30 Apr 2020 17:03:57 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21491@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

There is a new pull request by klarasm against master on the void-packages repository

https://github.com/klarasm/void-packages runit-kdump-fix
https://github.com/void-linux/void-packages/pull/21491

runit-kdump: fix conflict with /usr/lib/sysctl.d/10-void.conf
`/etc/runit/core-services/08-sysctl.sh` is run before `/etc/runit/core-services/90-kdump.sh`
This results in loading `/usr/lib/sysctl.d/10-void.conf` before running kdump kexec.
There is a problematic section in that file:
```
# Turn off kexec, even if it's built in.
kernel.kexec_load_disabled=1
```
This results in kdump failing to load. This option can't be turned off once it's turned on, as per [sysctl documentation](https://www.kernel.org/doc/html/latest/admin-guide/sysctl/kernel.html#kexec-load-disabled).
If this option is to be enabled kdump has to be loaded before the option is enabled.
This pull request renames `90-kdump.sh` to `07-kdump.sh` so it's loaded before `08-sysctl.sh`
I have tested this on my machine and it works on it.

There are probably other solutions as well, so please comment if you have any ideas.

A patch file from https://github.com/void-linux/void-packages/pull/21491.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-runit-kdump-fix-21491.patch --]
[-- Type: text/x-diff, Size: 1316 bytes --]

From 3d541d6c0359c5bd44e0c0b7807ad65ce6efd1c8 Mon Sep 17 00:00:00 2001
From: Klara Modin <klarasmodin@gmail.com>
Date: Thu, 30 Apr 2020 16:49:52 +0200
Subject: [PATCH] runit-kdump: fix conflict with /usr/lib/sysctl.d/10-void.conf

---
 srcpkgs/runit-kdump/files/{90-kdump.sh => 07-kdump.sh} | 0
 srcpkgs/runit-kdump/template                           | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename srcpkgs/runit-kdump/files/{90-kdump.sh => 07-kdump.sh} (100%)

diff --git a/srcpkgs/runit-kdump/files/90-kdump.sh b/srcpkgs/runit-kdump/files/07-kdump.sh
similarity index 100%
rename from srcpkgs/runit-kdump/files/90-kdump.sh
rename to srcpkgs/runit-kdump/files/07-kdump.sh
diff --git a/srcpkgs/runit-kdump/template b/srcpkgs/runit-kdump/template
index 04e3fca6c73..0c7f8ea464d 100644
--- a/srcpkgs/runit-kdump/template
+++ b/srcpkgs/runit-kdump/template
@@ -1,7 +1,7 @@
 # Template file for 'runit-kdump'
 pkgname=runit-kdump
 version=20150226
-revision=3
+revision=4
 archs=noarch
 make_dirs="/var/crash 0755 root root"
 depends="runit-void makedumpfile kexec-tools"
@@ -11,5 +11,5 @@ license="Public Domain"
 homepage="http://www.voidlinux.org/"
 
 do_install() {
-	vinstall ${FILESDIR}/90-kdump.sh 0644 etc/runit/core-services
+	vinstall ${FILESDIR}/07-kdump.sh 0644 etc/runit/core-services
 }

             reply	other threads:[~2020-04-30 15:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 15:03 klarasm [this message]
2020-08-04 13:31 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21491@inbox.vuxu.org \
    --to=klarasm@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).