* [bug#39882] [PATCH 0/1] Add kexec-tools.
@ 2020-03-03 11:56 Chris Marusich
2020-03-03 11:59 ` [bug#39882] [PATCH 1/1] gnu: " Chris Marusich
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Chris Marusich @ 2020-03-03 11:56 UTC (permalink / raw)
To: 39882; +Cc: Chris Marusich
Hi,
This simple patch adds kexec-tools. I've built it successfully on an
x86_64-linux system and confirmed via basic manual testing that kexec
works. I verified the signature of the upstream release tarball when
adding this. The patch applies cleanly to commit 6ce086550.
I was kind of surprised to find that kexec-tools was not already
packaged. Is there a reason why it hasn't been packaged, or am I just
the first one to try packaging it?
Thank you,
Chris
Chris Marusich (1):
gnu: Add kexec-tools.
gnu/packages/linux.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
--
2.24.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#39882] [PATCH 1/1] gnu: Add kexec-tools.
2020-03-03 11:56 [bug#39882] [PATCH 0/1] Add kexec-tools Chris Marusich
@ 2020-03-03 11:59 ` Chris Marusich
2020-03-03 12:28 ` [bug#39882] [PATCH 0/1] " Tobias Geerinckx-Rice via Guix-patches via
2020-03-03 13:09 ` bug#39882: Status: " Christopher Marusich
2 siblings, 0 replies; 5+ messages in thread
From: Chris Marusich @ 2020-03-03 11:59 UTC (permalink / raw)
To: 39882; +Cc: Chris Marusich
* gnu/packages/linux.scm (kexec-tools): New variable.
---
gnu/packages/linux.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0289047d27..fa9fdf759c 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -40,6 +40,7 @@
;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
+;;; Copyright © 2020 Chris Marusich <cmmarusich@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -6408,3 +6409,27 @@ user space tracer. It receives commands from a session daemon, for example to
enable and disable specific instrumentation points, and writes event records
to ring buffers shared with a consumer daemon.")
(license license:lgpl2.1+)))
+
+(define-public kexec-tools
+ (package
+ (name "kexec-tools")
+ (version "2.0.20")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://mirrors.edge.kernel.org/pub/linux"
+ "/utils/kernel/kexec/kexec-tools-" version
+ ".tar.xz"))
+ (sha256
+ (base32
+ "1j7qlhxk1rbv9jbj8wd6hb7zl8p2mp29ymrmccgmsi0m0dzhgn6s"))))
+ (build-system gnu-build-system)
+ (arguments
+ ;; There are no automated tests.
+ '(#:tests? #f))
+ (home-page "https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kexec/")
+ (synopsis "@code{kexec} and related tools for Linux kernels")
+ (description "This package provides the @code{kexec} program and ancillary
+utilities. Using @code{kexec}, it is possible to boot directly into a new
+Linux kernel from the context of an already-running Linux kernel, bypassing
+the normal system boot process.")
+ (license license:gpl2)))
--
2.24.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#39882] [PATCH 0/1] Add kexec-tools.
2020-03-03 11:56 [bug#39882] [PATCH 0/1] Add kexec-tools Chris Marusich
2020-03-03 11:59 ` [bug#39882] [PATCH 1/1] gnu: " Chris Marusich
@ 2020-03-03 12:28 ` Tobias Geerinckx-Rice via Guix-patches via
2020-03-03 13:08 ` Christopher Marusich
2020-03-03 13:09 ` bug#39882: Status: " Christopher Marusich
2 siblings, 1 reply; 5+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-03-03 12:28 UTC (permalink / raw)
To: 39882, Chris Marusich
[-- Attachment #1: Type: text/plain, Size: 2270 bytes --]
Chris,
Chris Marusich 写道:
> I was kind of surprised to find that kexec-tools was not already
> packaged. Is there a reason why it hasn't been packaged, or am
> I just
> the first one to try packaging it?
I was also surprised, having installed kexec-tools on Guix before
;-)
Turns out I never upstreamed it. There are probably 5 other
kexec-tools patches somewhere. Oh well.
Your patch looks good to me. I prefer the home page below over a
directory listing. Feel free to crib what you like.
Your synopsis/description imply that it's boot-Linux-only. I
don't think that's the case, but haven't tried others in practice.
Thanks!
T G-R
commit 69a6d90a988f86e556b2fb39092755f88eb9d323
Author: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Thu Feb 8 16:13:57 2018 +0100
gnu: Add kexec-tools.
* gnu/packages/linux.scm (kexec-tools): New public variable.
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 303a85c7fd..1ebc8b1744 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4632,3 +4632,24 @@ text-mode or graphical applications that
don't use a display server.
Also included is @command{fbgrab}, a wrapper around
@command{fbcat} that
emulates the behaviour of Gunnar Monell's older fbgrab utility.")
(license license:gpl2)))
+
+(define-public kexec-tools
+ (package
+ (name "kexec-tools")
+ (version "2.0.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
"mirror://kernel.org/pub/linux/utils/kernel/kexec/"
+ "kexec-tools-" version ".tar.xz"))
+ (sha256
+ (base32
"0ra8ph9m1dckqaikfnbsh408fp2w9k49fkl425fl2hvhwsm14xk6"))))
+ (build-system gnu-build-system)
+ (home-page "https://projects.horms.net/projects/kexec/")
+ (synopsis "Linux tools to directly execute different
kernels")
+ (description "This package provides tools to load a kernel
into memory and
+reboot directly into it using the @code{kexec} system call,
bypassing the normal
+boot process. @dfn{Kexec} is the mechanism by which both Linux
and Xen kernels
+can support fast soft reboots and kernel crash dump analysis.")
+ (license license:gpl2)))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#39882] [PATCH 0/1] Add kexec-tools.
2020-03-03 12:28 ` [bug#39882] [PATCH 0/1] " Tobias Geerinckx-Rice via Guix-patches via
@ 2020-03-03 13:08 ` Christopher Marusich
0 siblings, 0 replies; 5+ messages in thread
From: Christopher Marusich @ 2020-03-03 13:08 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: Chris Marusich, 39882
[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]
Hi Tobias,
Sounds good. I've gone ahead and committed this in commit
dedbdacf275cb7871c7336bd7a27ceb609b15113 with a few little changes, per
your suggestions.
Tobias Geerinckx-Rice <me@tobias.gr> writes:
> I was also surprised, having installed kexec-tools on Guix before ;-)
>
> Turns out I never upstreamed it. There are probably 5 other
> kexec-tools patches somewhere. Oh well.
Glad to know I wasn't missing something :-)
> Your patch looks good to me. I prefer the home page below over a
> directory listing. Feel free to crib what you like.
>
> Your synopsis/description imply that it's boot-Linux-only. I don't
> think that's the case, but haven't tried others in practice.
You're probably right. I've removed the Linux-specific wording.
> + (origin
> + (method url-fetch)
> + (uri (string-append
> "mirror://kernel.org/pub/linux/utils/kernel/kexec/"
> + "kexec-tools-" version ".tar.xz"))
I didn't know we had mirror config for kernel.org. I've switched to
using that in the latest patch.
> + (sha256
> + (base32
> "0ra8ph9m1dckqaikfnbsh408fp2w9k49fkl425fl2hvhwsm14xk6"))))
> + (build-system gnu-build-system)
> + (home-page "https://projects.horms.net/projects/kexec/")
Yes, this home page is better. I'll use it!
> + (synopsis "Linux tools to directly execute different kernels")
I've changed my synopsis to be more like yours.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#39882: Status: [PATCH 0/1] Add kexec-tools.
2020-03-03 11:56 [bug#39882] [PATCH 0/1] Add kexec-tools Chris Marusich
2020-03-03 11:59 ` [bug#39882] [PATCH 1/1] gnu: " Chris Marusich
2020-03-03 12:28 ` [bug#39882] [PATCH 0/1] " Tobias Geerinckx-Rice via Guix-patches via
@ 2020-03-03 13:09 ` Christopher Marusich
2 siblings, 0 replies; 5+ messages in thread
From: Christopher Marusich @ 2020-03-03 13:09 UTC (permalink / raw)
To: bug#39882
[-- Attachment #1: Type: text/plain, Size: 49 bytes --]
Hi,
I'll close this patch now.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-03-03 13:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-03 11:56 [bug#39882] [PATCH 0/1] Add kexec-tools Chris Marusich
2020-03-03 11:59 ` [bug#39882] [PATCH 1/1] gnu: " Chris Marusich
2020-03-03 12:28 ` [bug#39882] [PATCH 0/1] " Tobias Geerinckx-Rice via Guix-patches via
2020-03-03 13:08 ` Christopher Marusich
2020-03-03 13:09 ` bug#39882: Status: " Christopher Marusich
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).