deanputney 16 hours ago

Does this work for Raspberry Pi? Say for example I wanted to make an image that would auto-connect to my Tailscale network, or pre-install some software, would this be able to achieve that?

  • written-beyond 5 hours ago

    Use RPIOS [pi-gen](https://github.com/RPi-Distro/pi-gen), it's pretty versatile and stupid simple, I could not wrap my head around Yocto and Buildroot. Even set it up in CI so GitHub would build the image and id just get the final tar.gz file as an artifact.

    It's all just bash scripts and you can basically strip the entire image down. I had no window manager and no display server I was using DRM to show my UI.

  • klysm 13 hours ago

    I've checked on this several times over the years, and I think the answer will probably be no for a long time, or forever. The RPi boot process is a bit arcane and specific. Systemd's philosophy seems to want to target the 95% use case, but maybe the sheer size of the RPi sphere will provide enough pressure.

    • ChocolateGod 5 hours ago

      If you install a UEFI bootloader on the Pi, I don't see why it couldn't work.

  • sl-1 15 hours ago

    I use [pi-oven](https://github.com/keichi/pi-oven) for my raspberry images. Not perfect, but kind of works and removes a lot of hassle for the provisioning.

    Could not quickly find out from the project page an example on how to bake rpi images with mkosi, but the descriptions do point towards somewhat similar use case :shrug:

klysm 13 hours ago

I really wish this worked for raspberry pi

miladyincontrol 18 hours ago

Yeah, systemd's particleOS relies on it. Pretty neat stuff

mring33621 18 hours ago

What's the use-case for this?

  • mhitza 18 hours ago

    Most likely context I'm going to try it is in a systemd-nspawn context. Lightweight process namespace ("containers") closer to the native modern linux server runtime (systemd all the way).

  • its-summertime 17 hours ago

    one image to deploy mostly without additional tooling on any systemd-based OS (which mounts the image and integrates the units from it), on a VM (just use it), or on bare metal (probably needs to be built on a full image but still can just use it assuming that is the case).

pmarreck 19 hours ago

is this another case of "something that nix already definitively solves, but for the rest of us"?

  • bsammon 18 hours ago

    Or "something that nix already solve, but with documentation"

    • bketelsen 18 hours ago

      Normally I'd nod and smile at the nix documentation joke, but mkosi's documentation is the man pages, or the man pages.

      • jraph 17 hours ago

        It seems quite well written and easy to follow.