Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use linux-surface kernel #3

Merged
merged 25 commits into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# !! Warning: changing these might not do anything for you. Read comment above.
ARG IMAGE_MAJOR_VERSION=38
ARG BASE_IMAGE_URL=ghcr.io/ublue-os/kinoite-main
ARG BASE_IMAGE_URL=ghcr.io/ublue-os/kinoite-nokmods

FROM ${BASE_IMAGE_URL}:${IMAGE_MAJOR_VERSION}

Expand Down
3 changes: 2 additions & 1 deletion config/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: ublue-surface
description: A uBlue image with Plasma Mobile for the Microsoft Surface Go.

# 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/kinoite-nokmods
image-version: 38 # latest is also supported if you want new updates ASAP

# module configuration, executed in order
Expand Down Expand Up @@ -50,6 +50,7 @@ modules:

- type: script
scripts:
- change_kernel.sh
- configure_sddm.sh
- install_convergent_windows.sh
- setup_waydroid.sh
Expand Down
14 changes: 14 additions & 0 deletions config/scripts/change_kernel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
wget https://pkg.surfacelinux.com/fedora/linux-surface.repo -P /etc/yum.repos.d
wget https://github.com/linux-surface/linux-surface/releases/download/silverblue-20201215-1/kernel-20201215-1.x86_64.rpm -O /tmp/surface-kernel.rpm
rpm-ostree cliwrap install-to-root
rpm-ostree override replace /tmp/surface-kernel.rpm \
--remove kernel-core \
--remove kernel-modules \
--remove kernel-modules-extra \
--remove libwacom \
--remove libwacom-data \
--install kernel-surface \
--install iptsd \
--install libwacom-surface \
--install libwacom-surface-data