Git Product home page Git Product logo

Comments (5)

ethanjli avatar ethanjli commented on June 3, 2024

Following up on comments from #133:

  • It would be worth investigating whether we can use chezmoi as a library to manage both homefiles and etcfiles (from #133 (comment)) - and maybe even also for managing binaries
  • For software which only needs to run as a systemd service, it would be worth investigating whether we can get systemd portable services (provided by the systemd-container apt package) working, and whether we could manage them using Forklift (perhaps using https://github.com/coreos/go-systemd?). One key question is whether a portable service can modify files outside its root filesystem.
  • For software which also need to be made available as a binary to run (which is maybe just docker), it would be worth investigating whether we can use systemd-sysext and systemd-confext (#133 (comment) and #133 (comment)), at least after we upgrade from Raspberry Pi OS bullseye to Raspberry Pi OS bookworm (#322)

from planktoscope.

ethanjli avatar ethanjli commented on June 3, 2024

Apparently systemd-confext makes /etc read-only until after the extension is unmounted (because the config extensions are mounted over /etc). I think we really should try to keep /etc mutable for tinkering, so this rules out systemd-confext as something that might be useful for us. Any config files should instead be added using systemd-sysext to a directory inside /usr.

from planktoscope.

ethanjli avatar ethanjli commented on June 3, 2024

One potential simple yet flexible approach for putting arbitrary files in arbitrary locations on the filesystem in an atomic way could be to use bind mounts (maybe with systemd, e.g. as in https://utcc.utoronto.ca/~cks/space/blog/linux/SystemdBindMountUnits) and/or OverlayFS (maybe with systemd, e.g. as in https://bootlin.com/blog/systemd-read-only-rootfs-and-overlay-file-system-over-etc/, which discusses being able to add/modify systemd services using the OverlayFS)

from planktoscope.

ethanjli avatar ethanjli commented on June 3, 2024

Oops, I still need to make a PR to actually use the updated version of Forklift from PlanktoScope/forklift#195 to manage the machine-name binary!

from planktoscope.

ethanjli avatar ethanjli commented on June 3, 2024

This PR was closed by #411, but I had forgotten to link that PR to this issue when I merged #411.

from planktoscope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.