Skip to content

Commit

Permalink
chore: test bootc before initramfs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed May 11, 2024
1 parent fab7caf commit 70b1d17
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ run-booted-home image="" target="" version="":
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-intstaller-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 }}
Expand Down
2 changes: 1 addition & 1 deletion build_files/base/build-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ set -ouex pipefail
. /tmp/build/bluefin-changes.sh
. /tmp/build/aurora-changes.sh
. /tmp/build/branding.sh
. /tmp/build/initramfs.sh
. /tmp/build/bootc.sh
. /tmp/build/initramfs.sh
. /tmp/build/cleanup.sh
1 change: 0 additions & 1 deletion packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"samba-winbind-clients",
"samba-winbind-modules",
"samba",
"sl",
"solaar",
"stress-ng",
"tailscale",
Expand Down
37 changes: 37 additions & 0 deletions scripts/build-iso-intstaller-main.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/bash
#shellcheck disable=SC2154

if [[ -z ${project_root} ]]; then
project_root=$(git rev-parse --show-toplevel)
fi

# Common Build ISO
# shellcheck disable=SC1091
. "${project_root}/scripts/common-build-iso.sh"

if [[ ${container_mgr} =~ "podman" ]]; then
api_socket=/run/podman/podman.sock
elif [[ ${container_mgr} =~ "docker" ]]; then
api_socket=/var/run/docker.sock
fi

# Make ISO
${container_mgr} run --rm --privileged \
--volume "${api_socket}":/var/run/docker.sock \
--volume "${workspace}"/scripts/files/build-iso-makefile-patch:/build-container-installer/container/Makefile \
--volume "${workspace}/${flatpak_dir_shortname}":"/build-container-installer/${flatpak_dir_shortname}" \
--volume "${workspace}"/scripts/files/output:/build-container-installer/build \
ghcr.io/jasonn3/build-container-installer:main \
ARCH="x86_64" \
ENABLE_CACHE_DNF="false" \
ENABLE_CACHE_SKOPEO="false" \
ENABLE_FLATPAK_DEPENDENCIES="false" \
ENROLLMENT_PASSWORD="ublue-os" \
FLATPAK_REMOTE_REFS_DIR="${flatpak_dir_shortname}" \
IMAGE_NAME="${tag}" \
IMAGE_REPO="localhost" \
IMAGE_TAG="${version}" \
ISO_NAME="build/${tag}-${version}.iso" \
SECURE_BOOT_KEY_URL='https://github.com/ublue-os/akmods/raw/main/certs/public_key.der' \
VARIANT="${variant}" \
VERSION="${version}"

0 comments on commit 70b1d17

Please sign in to comment.