Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Instructions for Bootable images / Auto-installing ISO #17

Closed
jsundqvist opened this issue Mar 14, 2022 · 0 comments · Fixed by rancher/elemental#80
Closed

Instructions for Bootable images / Auto-installing ISO #17

jsundqvist opened this issue Mar 14, 2022 · 0 comments · Fixed by rancher/elemental#80
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@jsundqvist
Copy link

jsundqvist commented Mar 14, 2022

The information on https://rancher.github.io/os2/customizing/#bootable-images is outdated and broken.

Here's what I came up with to produce an ISO:

#!/bin/bash

set -e

LATEST=$(curl 'https://quay.io/api/v1/repository/costoolkit/os2/tag/?limit=1' -H 'accept: application/json' | jq -r '.tags[0].name')
curl -o ros-image-build "https://raw.githubusercontent.com/rancher-sandbox/os2/master/ros-image-build"

export DOCKER_BUILDKIT=1 # to make build/output.iso actually appear
export BUILDKIT_PROGRESS=plain
bash ros-image-build "quay.io/costoolkit/os2:$LATEST" iso #config.yaml

mv build/output.iso "rancher-os_$LATEST.iso"

Some notes:

  • Nothing has happened in this repo since Jan 19, but https://github.com/rancher-sandbox/os2 has active development. This is unfortunate since this repo is where you end up when coming from Google.
  • Images are not published to Docker Hub, but quay.io
  • The docker build option -o build/ does nothing unless DOCKER_BUILDKIT=1 is set, this could/should be incorporated into ros-image-build

Leaving this here to hopefully spare others of the software forensics.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants