unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob afec52b41828cd2ddc57be884e124d3d94ebb9cc 1088 bytes (raw)
name: gnu/packages/patches/spectre-meltdown-checker-support-guix-system-kernel.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
From 5b757d930ec0cf102b03fb9817d17e06c72e74b3 Mon Sep 17 00:00:00 2001
From: Hilton Chain <hako@ultrarare.space>
Date: Sat, 5 Nov 2022 23:22:31 +0800
Subject: [PATCH] Add support for Guix System kernel.

---
 spectre-meltdown-checker.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh
index 248a444..855a090 100755
--- a/spectre-meltdown-checker.sh
+++ b/spectre-meltdown-checker.sh
@@ -2251,6 +2251,8 @@ if [ "$opt_live" = 1 ]; then
 		[ -e "/boot/kernel-genkernel-$(uname -m)-$(uname -r)" ] && opt_kernel="/boot/kernel-genkernel-$(uname -m)-$(uname -r)"
 		# NixOS:
 		[ -e "/run/booted-system/kernel" ] && opt_kernel="/run/booted-system/kernel"
+		# Guix System:
+		[ -e "/run/booted-system/kernel/bzImage" ] && opt_kernel="/run/booted-system/kernel/bzImage"
 		# systemd kernel-install:
 		[ -e "/etc/machine-id" ] && [ -e "/boot/$(cat /etc/machine-id)/$(uname -r)/linux" ] && opt_kernel="/boot/$(cat /etc/machine-id)/$(uname -r)/linux"
 		# Clear Linux:

base-commit: a6c943d38f315f339697ec26e7374a09b88f2183
--
2.38.0

debug log:

solving afec52b418 ...
found afec52b418 in https://yhetil.org/guix-patches/y76pme1e6ms.wl-hako@ultrarare.space/ ||
	https://yhetil.org/guix-patches/y76a64v2e84.wl-hako@ultrarare.space/ ||
	https://yhetil.org/guix-patches/y76v8nkdx15.wl-hako@ultrarare.space/ ||
	https://yhetil.org/guix-patches/y76edu8cqu3.wl-hako@ultrarare.space/ ||
	https://yhetil.org/guix-patches/y76k041d9w6.wl-hako@ultrarare.space/

applying [1/1] https://yhetil.org/guix-patches/y76pme1e6ms.wl-hako@ultrarare.space/
diff --git a/gnu/packages/patches/spectre-meltdown-checker-support-guix-system-kernel.patch b/gnu/packages/patches/spectre-meltdown-checker-support-guix-system-kernel.patch
new file mode 100644
index 0000000000..afec52b418

1:21: space before tab in indent.
 		[ -e "/boot/kernel-genkernel-$(uname -m)-$(uname -r)" ] && opt_kernel="/boot/kernel-genkernel-$(uname -m)-$(uname -r)"
1:22: space before tab in indent.
 		# NixOS:
1:23: space before tab in indent.
 		[ -e "/run/booted-system/kernel" ] && opt_kernel="/run/booted-system/kernel"
1:26: space before tab in indent.
 		# systemd kernel-install:
1:27: space before tab in indent.
 		[ -e "/etc/machine-id" ] && [ -e "/boot/$(cat /etc/machine-id)/$(uname -r)/linux" ] && opt_kernel="/boot/$(cat /etc/machine-id)/$(uname -r)/linux"
Checking patch gnu/packages/patches/spectre-meltdown-checker-support-guix-system-kernel.patch...
Applied patch gnu/packages/patches/spectre-meltdown-checker-support-guix-system-kernel.patch cleanly.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.

skipping https://yhetil.org/guix-patches/y76a64v2e84.wl-hako@ultrarare.space/ for afec52b418
skipping https://yhetil.org/guix-patches/y76v8nkdx15.wl-hako@ultrarare.space/ for afec52b418
skipping https://yhetil.org/guix-patches/y76edu8cqu3.wl-hako@ultrarare.space/ for afec52b418
skipping https://yhetil.org/guix-patches/y76k041d9w6.wl-hako@ultrarare.space/ for afec52b418
index at:
100644 afec52b41828cd2ddc57be884e124d3d94ebb9cc	gnu/packages/patches/spectre-meltdown-checker-support-guix-system-kernel.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).