Commit 94287d7
committed
board/common: store version files in /usr/lib, symlink from /etc
Users commonly mount volumes over /etc and /var to persist config.
With /etc/os-release and /etc/version as plain files they get frozen
at the version the container was first started and won't reflect image
upgrades.
Move the content to /usr/lib/os-release and /usr/lib/version (outside
any volume mounts), and create /etc/os-release and /etc/version as
symlinks into /usr/lib/. The motd chain (/etc/motd -> version ->
/etc/version -> /usr/lib/version) continues to work as before.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>1 parent b3da3e6 commit 94287d7
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
0 commit comments