mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-04-11 07:15:31 +00:00
Revert "update to use cachyos kernel and kinoite base image"
This commit is contained in:
@@ -1,47 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Replaces the stock Fedora kernel with the CachyOS LTO kernel.
|
|
||||||
# CachyOS LTO kernel is compiled with Link-Time Optimization and ships
|
|
||||||
# sched-ext (SCX) support, giving lower latency for realtime audio workloads.
|
|
||||||
#
|
|
||||||
# Adapted from the Zena project (https://github.com/zena-linux/zena),
|
|
||||||
# specifically build-scripts/modules/base/kernel.sh.
|
|
||||||
# Zena is licensed under the Apache License 2.0.
|
|
||||||
# Credit to the Zena contributors: https://github.com/zena-linux/zena/graphs/contributors
|
|
||||||
|
|
||||||
set -ouex pipefail
|
|
||||||
|
|
||||||
shopt -s nullglob
|
|
||||||
|
|
||||||
KERNEL_PACKAGES=(
|
|
||||||
kernel-cachyos-lto
|
|
||||||
kernel-cachyos-lto-core
|
|
||||||
kernel-cachyos-lto-devel-matched
|
|
||||||
kernel-cachyos-lto-modules
|
|
||||||
)
|
|
||||||
|
|
||||||
# Disable kernel install hooks so the custom kernel installs cleanly into the image
|
|
||||||
pushd /usr/lib/kernel/install.d
|
|
||||||
printf '%s\n' '#!/bin/sh' 'exit 0' > 05-rpmostree.install
|
|
||||||
printf '%s\n' '#!/bin/sh' 'exit 0' > 50-dracut.install
|
|
||||||
chmod +x 05-rpmostree.install 50-dracut.install
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Remove stock Fedora kernel packages
|
|
||||||
for pkg in kernel kernel-core kernel-modules kernel-modules-core; do
|
|
||||||
rpm --erase "$pkg" --nodeps || true
|
|
||||||
done
|
|
||||||
|
|
||||||
# Remove leftover kernel module directory
|
|
||||||
CURRENT_MODULES=$(ls /usr/lib/modules | head -n1)
|
|
||||||
if [ -n "$CURRENT_MODULES" ]; then
|
|
||||||
rm -rf "/usr/lib/modules/$CURRENT_MODULES"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install the CachyOS LTO kernel (repos were added via the preceding dnf module)
|
|
||||||
dnf5 -y install "${KERNEL_PACKAGES[@]}"
|
|
||||||
|
|
||||||
# Version-lock to prevent the kernel from being overwritten by base image updates
|
|
||||||
dnf5 versionlock add "${KERNEL_PACKAGES[@]}" || true
|
|
||||||
|
|
||||||
# /boot is not used in atomic container images
|
|
||||||
rm -rf /boot/*
|
|
||||||
@@ -2,8 +2,6 @@ modules:
|
|||||||
- type: dnf
|
- type: dnf
|
||||||
repos:
|
repos:
|
||||||
copr:
|
copr:
|
||||||
- bieszczaders/kernel-cachyos-lto
|
|
||||||
- bieszczaders/kernel-cachyos-addons
|
|
||||||
- patrickl/wine-tkg
|
- patrickl/wine-tkg
|
||||||
- timlau/audio
|
- timlau/audio
|
||||||
- alternateved/eza
|
- alternateved/eza
|
||||||
|
|||||||
@@ -1,23 +1,7 @@
|
|||||||
modules:
|
modules:
|
||||||
- type: dnf
|
|
||||||
remove:
|
|
||||||
packages:
|
|
||||||
- zram-generator-defaults
|
|
||||||
|
|
||||||
- type: dnf
|
- type: dnf
|
||||||
install:
|
install:
|
||||||
packages:
|
packages:
|
||||||
# CachyOS kernel performance companion packages
|
|
||||||
# cachyos-settings: kernel tunables and sysctl optimisations from CachyOS
|
|
||||||
# cachyos-ksm-settings: Kernel Samepage Merging tuning (reduces RAM usage)
|
|
||||||
# scx-manager / scx-scheds / scx-tools: sched-ext schedulers;
|
|
||||||
# scx_lavd is ideal for low-latency realtime audio workloads
|
|
||||||
- cachyos-settings
|
|
||||||
- cachyos-ksm-settings
|
|
||||||
- scx-manager
|
|
||||||
- scx-scheds-git
|
|
||||||
- scx-tools-git
|
|
||||||
|
|
||||||
# useful tools
|
# useful tools
|
||||||
- zsh
|
- zsh
|
||||||
- openssl
|
- openssl
|
||||||
|
|||||||
@@ -3,25 +3,13 @@
|
|||||||
# image will be published to ghcr.io/<user>/<name>
|
# image will be published to ghcr.io/<user>/<name>
|
||||||
name: miasma-os
|
name: miasma-os
|
||||||
# description will be included in the image's metadata
|
# description will be included in the image's metadata
|
||||||
description: A personal spin based on Kinoite targeted towards musicians and music producers, with the CachyOS kernel for low-latency performance
|
description: An personal spin based on Bazzite targeted towards musicians and music producers inspired by Fedora Jam
|
||||||
|
|
||||||
# the base image to build on top of (FROM) and the version tag to use
|
# the base image to build on top of (FROM) and the version tag to use
|
||||||
base-image: ghcr.io/ublue-os/kinoite-main
|
base-image: ghcr.io/ublue-os/bazzite
|
||||||
image-version: latest # latest is also supported if you want new updates ASAP
|
image-version: latest # latest is also supported if you want new updates ASAP
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
# Add CachyOS repos first so the kernel swap script can use them
|
|
||||||
- type: dnf
|
|
||||||
repos:
|
|
||||||
copr:
|
|
||||||
- bieszczaders/kernel-cachyos-lto
|
|
||||||
- bieszczaders/kernel-cachyos-addons
|
|
||||||
|
|
||||||
# Swap stock Fedora kernel for CachyOS LTO kernel
|
|
||||||
- type: script
|
|
||||||
scripts:
|
|
||||||
- cachyos-kernel.sh
|
|
||||||
|
|
||||||
- type: dnf
|
- type: dnf
|
||||||
install:
|
install:
|
||||||
packages:
|
packages:
|
||||||
|
|||||||
Reference in New Issue
Block a user