This message was deleted.
# elemental
a
This message was deleted.
g
highlevel steps i'm taking: #pull elemental-toolkit 2.2.2 make build #this creates the image: localhost/local/elemental-toolkit:v2.2.2-g1fbc11eac #cd into green example folder podman build . --build-arg TOOLKIT_REPO=localhost/local/elemental-toolkit --build-arg VERSION=v2.2.2-g1fbc11eac #tag outputted image podman tag <IMAGEID> registry.home.local/elemental-opensuse:v3 #build iso from example:
Copy code
FROM registry.home.local/elemental-opensuse:v3 AS os

# Check the previous section on building custom images

# The released OS already includes the toolchain for building ISOs
FROM registry.home.local/elemental-opensuse:v3 AS builder

ARG TARGETARCH
WORKDIR /iso
COPY --from=os / rootfs

# work around buildah issue: <https://github.com/containers/buildah/issues/4242>
RUN rm -f rootfs/etc/resolv.conf

RUN elemental build-iso \
        dir:rootfs \
        --bootloader-in-rootfs \
        --squash-no-compression \
        -o /output -n "elemental-${TARGETARCH}"

FROM busybox
COPY --from=builder /output /elemental-iso

ENTRYPOINT ["busybox", "sh", "-c"]
podman tag <IMAGEID> registry.home.local/elemental-opensuse-iso:v3 #load images into rancher
Copy code
apiVersion: elemental.cattle.io/v1beta1
kind: ManagedOSVersion
metadata:
  name: v3-custom-opensuse
  namespace: fleet-default
spec:
  metadata:
    displayName: Custom opensuse image
    upgradeImage: registry.home.local/elemental-opensuse:v3
  type: container
  version: v3
---
apiVersion: elemental.cattle.io/v1beta1
kind: ManagedOSVersion
metadata:
  name: v3-custom-opensuse-iso
  namespace: fleet-default
spec:
  metadata:
    displayName: Custom opensuse ISO image
    uri: registry.home.local/elemental-opensuse-iso:v3
  type: iso
  version: v3
Found the issue was a cert issue. was able to troubleshoot with the pod logs when it trys to build the image