generated from blue-build/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to fix the image dbus/freedesktop error
- Loading branch information
Showing
19 changed files
with
133 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,25 +28,8 @@ jobs: | |
- recipe-nvidia.yml | ||
- recipe-dx-nvidia.yml | ||
- recipe-vm.yml | ||
- recipe-testing-nvidia.yml | ||
steps: | ||
- name: Gather image data from recipe | ||
run: | | ||
echo "IMAGE_NAME=$(grep '^name:' ./recipes/${{ matrix.recipe }} | sed 's/^name: //')" >> $GITHUB_ENV | ||
echo "IMAGE_MAJOR_VERSION=$(grep '^image-version:' ./recipes/${{ matrix.recipe }} | sed 's/^image-version: //')" >> $GITHUB_ENV | ||
BASE_IMAGE=$(grep '^base-image:' ./recipes/${{ matrix.recipe }} | sed 's/^base-image: //') | ||
echo "BASE_IMAGE_NAME=$(echo $BASE_IMAGE | sed 's/.*\/.*\///')" >> $GITHUB_ENV | ||
- name: Validate kernel and kmod versions | ||
run: | | ||
set -eo pipefail | ||
linux=$(skopeo inspect docker://ghcr.io/ublue-os/main-kernel:41 | jq -r '.Labels["ostree.linux"]') | ||
AKMODS_KERNEL_VERSION=$(skopeo inspect docker://ghcr.io/ublue-os/akmods:main-41 | jq -r '.Labels["ostree.linux"]') | ||
if [[ "${linux}" != "${AKMODS_KERNEL_VERSION}" ]]; then | ||
echo "Kernel Versions do not match between AKMODS and Cached-Kernel." | ||
exit 1 | ||
fi | ||
echo "KERNEL_VERSION=$linux" >> $GITHUB_ENV | ||
# the build is fully handled by the reusable github action | ||
- name: Build Custom Image | ||
uses: blue-build/[email protected] | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/usr/bin/bash | ||
|
||
set -eoux pipefail | ||
|
||
if [[ "${IMAGE_NAME}" =~ hwe ]]; then | ||
echo "HWE image detected, installing HWE packages" | ||
else | ||
echo "Standard image detected, skipping HWE packages" | ||
exit 0 | ||
fi | ||
|
||
# Asus/Surface for HWE | ||
curl --retry 3 -Lo /etc/yum.repos.d/_copr_lukenukem-asus-linux.repo \ | ||
https://copr.fedorainfracloud.org/coprs/lukenukem/asus-linux/repo/fedora-$(rpm -E %fedora)/lukenukem-asus-linux-fedora-$(rpm -E %fedora).repo | ||
|
||
curl --retry 3 -Lo /etc/yum.repos.d/linux-surface.repo \ | ||
https://pkg.surfacelinux.com/fedora/linux-surface.repo | ||
|
||
# Asus Firmware | ||
git clone https://gitlab.com/asus-linux/firmware.git --depth 1 /tmp/asus-firmware | ||
cp -rf /tmp/asus-firmware/* /usr/lib/firmware/ | ||
rm -rf /tmp/asus-firmware | ||
|
||
ASUS_PACKAGES=( | ||
asusctl | ||
asusctl-rog-gui | ||
) | ||
|
||
SURFACE_PACKAGES=( | ||
iptsd | ||
libcamera | ||
libcamera-tools | ||
libcamera-gstreamer | ||
libcamera-ipa | ||
pipewire-plugin-libcamera | ||
) | ||
|
||
rpm-ostree install \ | ||
"${ASUS_PACKAGES[@]}" \ | ||
"${SURFACE_PACKAGES[@]}" | ||
|
||
tee /usr/lib/modules-load.d/ublue-surface.conf << EOF | ||
# Add modules necessary for Disk Encryption via keyboard | ||
surface_aggregator | ||
surface_aggregator_registry | ||
surface_aggregator_hub | ||
surface_hid_core | ||
8250_dw | ||
# Surface Laptop 3/Surface Book 3 and later | ||
surface_hid | ||
surface_kbd | ||
# Only on AMD models | ||
pinctrl_amd | ||
# Only on Intel models | ||
intel_lpss | ||
intel_lpss_pci | ||
# Surface Book 2 | ||
pinctrl_sunrisepoint | ||
# For Surface Laptop 3/Surface Book 3 | ||
pinctrl_icelake | ||
# For Surface Laptop 4/Surface Laptop Studio | ||
pinctrl_tigerlake | ||
# For Surface Pro 9/Surface Laptop 5 | ||
pinctrl_alderlake | ||
# For Surface Pro 10/Surface Laptop 6 | ||
pinctrl_meteorlake | ||
EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/bash | ||
|
||
set -eoux pipefail | ||
|
||
mkdir -p /tmp/mediatek-firmware | ||
curl --retry 3 -Lo /tmp/mediatek-firmware/WIFI_MT7922_patch_mcu_1_1_hdr.bin https://gitlab.com/kernel-firmware/linux-firmware/-/raw/8f08053b2a7474e210b03dbc2b4ba59afbe98802/mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin?inline=false | ||
curl --retry 3 -Lo /tmp/mediatek-firmware/WIFI_RAM_CODE_MT7922_1.bin https://gitlab.com/kernel-firmware/linux-firmware/-/raw/8f08053b2a7474e210b03dbc2b4ba59afbe98802/mediatek/WIFI_RAM_CODE_MT7922_1.bin?inline=false | ||
xz --check=crc32 /tmp/mediatek-firmware/WIFI_MT7922_patch_mcu_1_1_hdr.bin | ||
xz --check=crc32 /tmp/mediatek-firmware/WIFI_RAM_CODE_MT7922_1.bin | ||
mv -vf /tmp/mediatek-firmware/* /usr/lib/firmware/mediatek/ | ||
rm -rf /tmp/mediatek-firmware |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
type: akmods | ||
base: main # if not specified, classic "main" base is used by default | ||
install: | ||
- v4l2loopback | ||
- nvidia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
# yaml-language-server: $schema=https://schema.blue-build.org/module-v1.json | ||
modules: | ||
- type: script | ||
snippets: [] | ||
# - "curl https://example.com/examplebinary > /usr/bin/examplebinary" # example: download binary | ||
scripts: | ||
- hwe-firmware.sh | ||
- hwe-additions.sh | ||
# - example.sh # example: run files/scripts/example.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
--- | ||
# yaml-language-server: $schema=https://schema.blue-build.org/module-v1.json | ||
modules: | ||
# - type: akmods | ||
# base: main # if not specified, classic "main" base is used by default | ||
# install: | ||
# - nvidia | ||
- type: script | ||
scripts: | ||
- nvidia.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
# yaml-language-server: $schema=https://schema.blue-build.org/module-v1.json | ||
name: hyprland-testing-nvidia | ||
description: This is my personal OS image. | ||
base-image: quay.io/fedora-ostree-desktops/base-atomic | ||
image-version: 41 # latest is also supported if you want new updates ASAP | ||
modules: | ||
# --------------------------------------------------------------------------------------------------------------------------- | ||
- from-file: modules/akmods.yml | ||
- from-file: modules/common-modules.yml | ||
- from-file: modules/nvidia.yml | ||
# - from-file: modules/final-scripts.yml | ||
# --------------------------------------------------------------------------------------------------------------------------- | ||
# Signing | ||
- type: signing # this sets up the proper policy & signing files for signed images to work fully | ||
# ---------------------------------------------------------------------------------------------------------------------------- |