mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-29 07:42:23 -05:00
b52ac1c874
* gnu/packages/linux.scm (spectre-meltdown-checker): New variable. * gnu/packages/patches/spectre-meltdown-checker-find-kernel.patch: New file. * gnu/packages/patches/spectre-meltdown-checker-externalize-fwdb.patch: New file. * gnu/local.mk (dist_patch_DATA): Register them here. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
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] Locate the kernel bzimage used by Guix System
|
|
|
|
---
|
|
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
|