Skip to content

Commit

Permalink
Use linux-surface kernel (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
plata authored Oct 29, 2023
1 parent 01b43e7 commit b4d47a1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
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

0 comments on commit b4d47a1

Please sign in to comment.