Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeConfig ignores /var which also break other folders when symlinked #2029

Closed
Tracked by #424
tnozicka opened this issue Jul 19, 2024 · 0 comments · Fixed by #2033
Closed
Tracked by #424

NodeConfig ignores /var which also break other folders when symlinked #2029

tnozicka opened this issue Jul 19, 2024 · 0 comments · Fixed by #2033
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@tnozicka
Copy link
Member

On CoreOS like fs, all data is efectivelly stored in /var/ and other folders point to it:

lrwxrwxrwx.   2 root root    7 Nov 20  2023 bin -> usr/bin
drwxr-xr-x.   8 root root 1024 Jul 19 09:14 boot
drwxr-xr-x.  17 root root 3720 Jul 19 14:23 dev
drwxr-xr-x.  96 root root 8192 Jul 19 14:23 etc
lrwxrwxrwx.   2 root root    8 Nov 20  2023 home -> var/home
lrwxrwxrwx.   2 root root    7 Nov 20  2023 lib -> usr/lib
lrwxrwxrwx.   2 root root    9 Nov 20  2023 lib64 -> usr/lib64
lrwxrwxrwx.   2 root root    9 Nov 20  2023 media -> run/media
lrwxrwxrwx.   2 root root    7 Nov 20  2023 mnt -> var/mnt
lrwxrwxrwx.   2 root root    7 Nov 20  2023 opt -> var/opt
lrwxrwxrwx.   2 root root   14 Nov 20  2023 ostree -> sysroot/ostree
dr-xr-xr-x. 237 root root    0 Jul 19 14:22 proc
lrwxrwxrwx.   2 root root   12 Nov 20  2023 root -> var/roothome
drwxr-xr-x.  56 root root 1480 Jul 19 14:23 run
lrwxrwxrwx.   2 root root    8 Nov 20  2023 sbin -> usr/sbin
lrwxrwxrwx.   2 root root    7 Nov 20  2023 srv -> var/srv
dr-xr-xr-x.  13 root root    0 Jul 19 14:22 sys
drwxr-xr-x.   4 root root   66 Nov 20  2023 sysroot
drwxrwxrwt.  11 root root  220 Jul 19 17:41 tmp
drwxr-xr-x.  12 root root  155 Jan  1  1970 usr
drwxr-xr-x.  24 root root 4096 Jul 19 09:13 var

but NodeConfig doesn't mount say /var at all

for d in $( find /host -mindepth 1 -maxdepth 1 -type d -not -path /host/var -not -path /host/run -not -path /host/tmp -printf '%f\n' ); do

So while we can now resolve symlinks, the path actually doesn't exist and can't be resolved, neither used.

@tnozicka tnozicka added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Jul 19, 2024
@tnozicka tnozicka self-assigned this Jul 19, 2024
@tnozicka tnozicka changed the title Top level symlinks don't resolve for NodeConfig mounts and /var is ignored Top level symlinks don't resolve for NodeConfig mounts and /var data is completely missing Jul 19, 2024
@tnozicka tnozicka changed the title Top level symlinks don't resolve for NodeConfig mounts and /var data is completely missing NodeConfig ignores /var which also break other folders when symlinked Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant