forked from ublue-os/bluefin
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
ebdb1db
commit fc20d36
Showing
144 changed files
with
1,324 additions
and
1,199 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,100 @@ | ||
export project_root := `git rev-parse --show-toplevel` | ||
export git_branch := ` git branch --show-current` | ||
|
||
alias run := run-container | ||
|
||
_default: | ||
@just help | ||
|
||
_container_mgr: | ||
@{{ project_root }}/scripts/container_mgr.sh | ||
|
||
_base_image image: | ||
@{{ project_root }}/scripts/base-image.sh {{ image }} | ||
|
||
_tag image target: | ||
@{{ project_root }}/scripts/make-tag.sh {{ image }} {{ target }} | ||
|
||
# Check Just Syntax | ||
just-check: | ||
#!/usr/bin/bash | ||
find "${project_root}" -type f -name "*.just" | while read -r file; do | ||
echo "Checking syntax: $file" | ||
just --unstable --fmt --check -f $file | ||
done | ||
echo "Checking syntax: ${project_root}/Justfile" | ||
just --unstable --fmt --check -f ${project_root}/Justfile | ||
|
||
# Fix Just Syntax | ||
just-fix: | ||
#!/usr/bin/bash | ||
find "${project_root}" -type f -name "*.just" | while read -r file; do | ||
echo "Checking syntax: $file" | ||
just --unstable --fmt -f $file | ||
done | ||
echo "Checking syntax: ${project_root}/Justfile" | ||
just --unstable --fmt -f ${project_root}/Justfile || { exit 1; } | ||
|
||
# Build Image | ||
build image="" target="" version="": | ||
@{{ project_root }}/scripts/build-image.sh {{ image }} {{ target }} {{ version }} | ||
|
||
# Run image | ||
run-container image="" target="" version="": | ||
@{{ project_root }}/scripts/run-image.sh {{ image }} {{ target }} {{ version }} | ||
|
||
# # Run Booted Image Session w/ Guest | ||
# run-booted-guest image="" target="" version="": | ||
# @{{ project_root }}/scripts/run-booted-guest.sh {{ image }} {{ target }} {{ version }} | ||
# # Run Booted Image Session w/ mounted in $USER and $HOME | ||
# run-booted-home image="" target="" version="": | ||
# @{{ project_root }}/scripts/run-booted-home.sh {{ image }} {{ target }} {{ version }} | ||
|
||
# Create ISO from local dev build image | ||
build-iso image="" target="" version="": | ||
@{{ project_root }}/scripts/build-iso.sh {{ image }} {{ target }} {{ version }} | ||
|
||
# Create ISO from local dev build image - use build-container-installer:main | ||
build-iso-installer-main image="" target="" version="": | ||
@{{ project_root }}/scripts/build-iso-installer-main.sh {{ image }} {{ target }} {{ version }} | ||
|
||
# Run ISO from local dev build image | ||
run-iso image="" target="" version="": | ||
@{{ project_root }}/scripts/run-iso.sh {{ image }} {{ target }} {{ version }} | ||
|
||
# Create ISO from currenct ghcr image | ||
build-iso-ghcr image="" target="" version="": | ||
@{{ project_root }}/scripts/build-iso-ghcr.sh {{ image }} {{ target }} {{ version }} | ||
|
||
# Clean Directory. Remove ISOs and Build Files | ||
clean: | ||
@{{ project_root }}/scripts/cleanup-dir.sh | ||
|
||
# Remove built images | ||
clean-images: | ||
@{{ project_root }}/scripts/cleanup-images.sh | ||
|
||
# List Built Images | ||
list-images: | ||
@{{ project_root }}/scripts/list-images.sh | ||
|
||
[private] | ||
help: | ||
#!/usr/bin/bash | ||
echo " " | ||
echo "These are helper scripts for building and testing development images " | ||
echo " " | ||
echo "You can run dev images either in 'booted like' setup with 'just run-booted' " | ||
echo "Or in a more stripped down version with 'just run' " | ||
echo "Specify which image you wish to build and run by name. " | ||
echo "Example: 'just run-container aurora' -> runs aurora without systemd " | ||
echo " " | ||
echo "Helper scripts are in 'project_root/scripts'. " | ||
echo " " | ||
echo "Modify the 'devcontainer.json' in 'project_root/.devcontainer' to support " | ||
echo "Running the devcontainer with podman or docker " | ||
echo "Manually specify container manager with '$CONTAINER_MGR' enviornment variable " | ||
echo " " | ||
just --list | ||
|
||
os: (build "os" "base" "stable") |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -oue pipefail | ||
|
||
for i in /ctx/patches/*.patch; do patch -d/ -p0 < "$i"; done |
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,5 @@ | ||
#!/usr/bin/bash | ||
|
||
if [ "$FEDORA_MAJOR_VERSION" -ge "40" ]; then | ||
/usr/bin/bootupctl backend generate-update-metadata | ||
fi |
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,29 @@ | ||
#!/usr/bin/bash | ||
# shellcheck disable=SC1091 | ||
|
||
set -ouex pipefail | ||
|
||
cp -r /ctx/just /tmp/just | ||
cp /ctx/packages.json /tmp/packages.json | ||
cp /ctx/system_files/etc/ublue-update/ublue-update.toml /tmp/ublue-update.toml | ||
|
||
rsync -rvK /ctx/system_files/ / | ||
|
||
/ctx/build_files/firmware.sh | ||
/ctx/build_files/cache_kernel.sh | ||
/ctx/build_files/copr-repos.sh | ||
/ctx/build_files/install-akmods.sh | ||
/ctx/build_files/packages.sh | ||
/ctx/build_files/nvidia.sh | ||
/ctx/build_files/image-info.sh | ||
/ctx/build_files/fetch-install.sh | ||
/ctx/build_files/font-install.sh | ||
/ctx/build_files/systemd.sh | ||
/ctx/build_files/initramfs.sh | ||
/ctx/build_files/bootc.sh | ||
/ctx/build_files/cleanup.sh | ||
/ctx/build_files/image-info.sh | ||
/ctx/build_files/workarounds.sh | ||
/ctx/build_files/apply-patches.sh | ||
/ctx/build_files/completions.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/bash | ||
|
||
set -eoux pipefail | ||
|
||
if [[ -n "${NVIDIA_TYPE:-}" ]]; then | ||
rpm-ostree override replace --experimental \ | ||
/tmp/kernel-rpms/kernel-[0-9]*.rpm \ | ||
/tmp/kernel-rpms/kernel-core-*.rpm \ | ||
/tmp/kernel-rpms/kernel-modules-*.rpm | ||
fi |
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,8 @@ | ||
#!/usr/bin/bash | ||
|
||
set -eoux pipefail | ||
shopt -s extglob | ||
|
||
rm -rf /tmp/* || true | ||
rm -rf /var/!(cache) | ||
rm -rf /var/cache/!(rpm-ostree) |
Oops, something went wrong.