You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/filesystem.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ in derived builds.
70
70
## `/etc`
71
71
72
72
The `/etc` directory contains mutable persistent state by default; however,
73
-
it is suppported to enable the [`etc.transient` config option](https://ostreedev.github.io/ostree/man/ostree-prepare-root.html),
73
+
it is suppported (and encouraged) to enable the [`etc.transient` config option](https://ostreedev.github.io/ostree/man/ostree-prepare-root.html),
74
74
see below as well.
75
75
76
76
When in persistent mode, it inherits the OSTree semantics of [performing a 3-way merge](https://ostreedev.github.io/ostree/atomic-upgrades/#assembling-a-new-deployment-directory)
@@ -80,6 +80,10 @@ across upgrades. In a nutshell:
80
80
- The diff between current and previous `/etc` is applied to the new `/etc`
81
81
- Locally modified files in `/etc` different from the default `/usr/etc` (of the same deployment) will be retained
82
82
83
+
You can view the state via `ostree admin config-diff`. Note that the "diff"
84
+
here is includes metadata (uid, gid, extended attributes), so changing any of those
85
+
will also mean that updated files from the image are not applied.
86
+
83
87
The implementation of this defaults to being executed by `ostree-finalize-staged.service`
84
88
at shutdown time, before the new bootloader entry is created.
85
89
@@ -96,6 +100,10 @@ would require external intervention to apply.
96
100
97
101
For more on configuration file best practices, see [Building](building/guidance.md).
98
102
103
+
To emphasize again, it's recommended to enable `etc.transient` if possible, though
104
+
when using that you may need to store some machine-specific state in e.g. the
105
+
kernel commandline if applicable.
106
+
99
107
### `/usr/etc`
100
108
101
109
The `/usr/etc` tree is generated client side and contains the default container image's
0 commit comments