Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Take another look at lorax #2

Open
castrojo opened this issue Mar 9, 2023 · 0 comments
Open

Take another look at lorax #2

castrojo opened this issue Mar 9, 2023 · 0 comments

Comments

@castrojo
Copy link
Member

castrojo commented Mar 9, 2023

Got some feedback from reddit that I wanted to capture here: https://www.reddit.com/r/Fedora/comments/11lefhy/ublues_nvidia_images_are_now_10/jbdpnm5/

Here's an older repo for a custom-ostree. ostree configs are a list of packages, an optional post-setup script, and some repos.

It can then be glued onto the existing ostree work to use OCI images as an update source.

And they use Lorax to put a partial KS in place, which could just as easily be something this if more customization was desired:

lorax --product='Your OS' \
  --version=1.0.0 \
  --release=$(date +%Y%m%d) \
  --variant=YOUROS \
  --installpkgs fedora-release* \
  --installpkgs ostree* \
  --nomacboot \
  --volid=YOUROS-x86_64-1.0.0.fc37 \
  --add-template=/builddir/lorax-templates/lorax-configure-repo.tmpl \
  --add-template=/builddir/lorax-templates/lorax-embed-repo.tmpl \
  --add-template-var=ostree_install_repo=file:///builddir/repo \
  --add-template-var=ostree_update_repo=http://example.com/ostree \
  --add-template-var=ostree_osname=your-os \
  --add-template-var=ostree_oskey=your-os-primary \
  --add-template-var=ostree_contenturl=http://example.com/ostree \
  --add-template-var=ostree_install_ref=fedora/37/... \
  --add-template-var=ostree_update_ref=fedora/37/...-updates \
  --logfile=/builddir/lorax.log \
  --tmp=/builddir/tmp \
  --rootfs-size=8 \
  /builddir/completed-iso"
mock -r fedora-37-x86_64 --copyout /builddir/completed-iso/images/boot.iso $(pwd)/completed-iso/YOUROS-x86_64.1.0.0.el8.iso

You can now make your own OSTree spin.

This is a great effort. It's hard to understand what's going on because not a lot of people do this (or need to, or want to), but it's pretty much stitching together the normal build process for Silverblue with a couple of packages which are part of the base image rather than overlays.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant