From 5580371eef6e57155652aff8f1226ee04b18a1cb Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:41:35 +0100 Subject: [PATCH] Test regenerating initramfs with surface kernel --- files/scripts/surface-kernel.sh | 19 +++++++++++++++++++ recipes/module-recipes/scripts.yml | 1 + 2 files changed, 20 insertions(+) create mode 100644 files/scripts/surface-kernel.sh diff --git a/files/scripts/surface-kernel.sh b/files/scripts/surface-kernel.sh new file mode 100644 index 00000000..9cc295b8 --- /dev/null +++ b/files/scripts/surface-kernel.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -euo pipefail + +KERNEL_VERSION="6.11.11-1.surface.fc41.x86_64" + + rpm-ostree override replace \ + --experimental \ + --remove kernel \ + --remove kernel-core \ + --remove kernel-modules \ + --remove kernel-modules-core \ + --remove kernel-modules-extra \ + /tmp/kernel-rpms/kernel-surface-"${KERNEL_VERSION}".rpm \ + /tmp/kernel-rpms/kernel-surface-core-"${KERNEL_VERSION}".rpm \ + /tmp/kernel-rpms/kernel-surface-modules-"${KERNEL_VERSION}".rpm \ + /tmp/kernel-rpms/kernel-surface-modules-core-"${KERNEL_VERSION}".rpm \ + /tmp/kernel-rpms/kernel-surface-modules-extra-"${KERNEL_VERSION}".rpm \ + /tmp/kernel-rpms/kernel-surface-default-watchdog-"${KERNEL_VERSION}".rpm diff --git a/recipes/module-recipes/scripts.yml b/recipes/module-recipes/scripts.yml index dbebab53..2fb76679 100644 --- a/recipes/module-recipes/scripts.yml +++ b/recipes/module-recipes/scripts.yml @@ -1,6 +1,7 @@ type: script scripts: - morewaita.sh + - surface-kernel.sh - initramfs.sh - sleep-through-notifications.sh - disable-layering.sh