Skip to content

Commit 97460a1

Browse files
committed
Added the surface kernel
1 parent f4b9dc4 commit 97460a1

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

build_files/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ echo "::endgroup::"
1414

1515
# Install Packages
1616

17+
# Install Kernel
18+
echo "::group:: Install Surface Kernel"
19+
/ctx/install-stage-surface-kernel.sh
20+
echo "::endgroup::"
21+
1722
## Install Mullvad
1823
echo "::group:: Install Mullvad"
1924
/ctx/main-repo/build_files/install-stage-mullvad.sh
@@ -51,7 +56,7 @@ echo "::endgroup::"
5156

5257
# Generate initramfs
5358
echo "::group:: Generate initramfs"
54-
/ctx/main-repo/build_files/generate-initramfs.sh
59+
/ctx/generate-initramfs.sh
5560
echo "::endgroup::"
5661

5762
# Cleanup

build_files/generate-initramfs.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/bash
2+
3+
set -eoux pipefail
4+
5+
KERNEL_VERSION="$(rpm -q --queryformat="%{evr}.%{arch}" kernel-surface)"
6+
7+
# Ensure Initramfs is generated
8+
export DRACUT_NO_XATTR=1
9+
/usr/bin/dracut --no-hostonly --kver "${KERNEL_VERSION}" --reproducible -v --add ostree -f "/lib/modules/${KERNEL_VERSION}/initramfs.img"
10+
chmod 0600 "/lib/modules/${KERNEL_VERSION}/initramfs.img"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -eoux pipefail
4+
5+
export DRACUT_NO_XATTR=1
6+
dnf config-manager addrepo --assumeyes --from-repofile=https://pkg.surfacelinux.com/fedora/linux-surface.repo
7+
dnf swap --assumeyes --allowerasing kernel-core kernel-surface
8+
dnf swap --assumeyes --allowerasing libwacom libwacom-surface
9+
dnf swap --assumeyes --allowerasing libwacom-data libwacom-surface-data
10+
dnf install --assumeyes iptsd
11+
dnf install --assumeyes surface-secureboot

0 commit comments

Comments
 (0)