Skip to content

Commit afb1665

Browse files
committed
1 parent 114c199 commit afb1665

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
image_flavor: [main, nvidia]
38-
base_name: [bazzite, bazzite-deck]
38+
base_name: [bazzite, bazzite-surface, bazzite-deck]
3939
base_image_name: [kinoite, silverblue]
4040
major_version: [38]
4141
include:

Containerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,35 @@ RUN rm /usr/share/applications/shredder.desktop && \
209209
chmod -R 1777 /var/tmp && \
210210
ostree container commit
211211

212+
FROM bazzite as bazzite-surface
213+
214+
# Add Linux Surface repo
215+
RUN wget https://pkg.surfacelinux.com/fedora/linux-surface.repo -P /etc/yum.repos.d
216+
217+
# Install Surface kernel
218+
RUN wget https://github.com/linux-surface/linux-surface/releases/download/silverblue-20201215-1/kernel-20201215-1.x86_64.rpm -O \
219+
/tmp/surface-kernel.rpm && \
220+
rpm-ostree cliwrap install-to-root / && \
221+
rpm-ostree override replace /tmp/surface-kernel.rpm \
222+
--remove kernel-core \
223+
--remove kernel-devel-matched \
224+
--remove kernel-modules \
225+
--remove kernel-modules-extra \
226+
--remove libwacom \
227+
--remove libwacom-data \
228+
--install kernel-surface \
229+
--install iptsd \
230+
--install libwacom-surface \
231+
--install libwacom-surface-data
232+
233+
# Cleanup & Finalize
234+
RUN rm -rf \
235+
/tmp/* \
236+
/var/* && \
237+
mkdir -p /var/tmp && \
238+
chmod -R 1777 /var/tmp && \
239+
ostree container commit
240+
212241
FROM bazzite as bazzite-deck
213242

214243
ARG IMAGE_NAME="${IMAGE_NAME}"

0 commit comments

Comments
 (0)