This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
forked from blue-build/legacy-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.
- Loading branch information
Showing
4 changed files
with
59 additions
and
1 deletion.
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
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,18 @@ | ||
# image will be published to ghcr.io/<user>/<name> | ||
name: ucore-zfs-rpm-podman-lxd | ||
# description will be included in the image's metadata | ||
description: Ucore minimal with zfs and lxd | ||
|
||
# the base image to build on top of (FROM) and the version tag to use | ||
base-image: ghcr.io/ublue-os/ucore-hci | ||
image-version: stable-zfs # latest is also supported if you want new updates ASAP | ||
|
||
# list of modules, executed in order | ||
# you can include multiple instances of the same module | ||
modules: | ||
|
||
- from-file: recipe-ucore-zfs-light.yml | ||
|
||
- type: script | ||
scripts: | ||
- vgpu.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,40 @@ | ||
#!/bin/sh | ||
|
||
set -oeux pipefail | ||
|
||
cd /tmp | ||
|
||
### BUILD nvidia | ||
|
||
NVIDIA_VERSION="535.104" | ||
ZIP_NAME="NVIDIA-GRID-Linux-KVM-${NVIDIA_VERSION}.06-535.104.05-537.13.zip" | ||
DEVELOPMENT_PACKAGES="wget p7zip p7zip-plugins mscompress osslsigncode git kernel-devel unzip patch vulkan-loader" | ||
|
||
rpm-ostree install "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm" "https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-$(rpm -E %fedora)-1.noarch.rpm" | ||
# shellcheck disable=SC2086 | ||
rpm-ostree install ${DEVELOPMENT_PACKAGES} vulkan-loader | ||
|
||
git clone --recursive https://github.com/VGPU-Community-Drivers/vGPU-Unlock-patcher.git -b ${NVIDIA_VERSION} | ||
|
||
VGPU_FOLDER="vGPU-Unlock-patcher" | ||
|
||
wget -q "https://github.com/justin-himself/NVIDIA-VGPU-Driver-Archive/releases/download/16.1/${ZIP_NAME}" | ||
unzip ${ZIP_NAME} -d ${VGPU_FOLDER} | ||
rm -f ${ZIP_NAME} | ||
|
||
cd ${VGPU_FOLDER} | ||
|
||
mv Guest_Drivers/* . | ||
mv Host_Drivers/* . | ||
mv Signing_Keys/* . | ||
|
||
chmod +x patch.sh | ||
|
||
./patch.sh general-merge | ||
|
||
KERNEL_VERSION="$(rpm -q kernel-devel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" | ||
|
||
./NVIDIA-Linux-x86_64-535.104.05-merged-vgpu-kvm-patched/nvidia-installer -s --kernel-source-path /usr/src/kernels/"${KERNEL_VERSION}" --no-systemd --dkms | ||
|
||
cd .. | ||
rm -rf ${VGPU_FOLDER} |