particle-os-modules/modules/files
Nick Saika 17bacbe3da
fix: Fix flag ordering in set calls in scripts (#99)
The README for scripts has an incorrect use of the `set`. Where it says
to use:

	set -oue pipefail

it should be:

	set -euo pipefail

since `pipefail` is an option consumed by `set -o`.

More information: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
2024-01-16 06:12:08 +00:00
..
files.sh fix: Fix flag ordering in set calls in scripts (#99) 2024-01-16 06:12:08 +00:00
README.md fix: terminology (#60) 2023-10-06 09:53:48 +00:00

files Module for Startingpoint

The files module simplifies the process of copying files to the image during the build time. These files are sourced from the config/files directory, which is located at /tmp/config/files inside the image.

Warning

If you want to place anything in /etc of the final image, you MUST place them in /usr/etc in your repo, so that they're written to /usr/etc on the final system. That is the proper directory for "system" configuration templates on OSTree-based Fedora distros, whereas /etc is meant for manual overrides and editing by the machine's admin AFTER installation! See issue https://github.com/ublue-os/startingpoint/issues/28.

Example Configuration

type: files
files:
  - usr: /usr

In the example above, usr represents the directory located inside the config/files in the repository, while /usr designates the corresponding destination within the image.