Skip to content

Conversation

@dantebarbieri
Copy link
Contributor

Description

This PR follows absolute symlinks recursively in order to properly display os-release, even in environments such as NixOS which use absolute symlinks for /etc/os-release.

It also checks manually for /mnt/host/etc/os-release and /mnt/host/usr/lib/os-release in case a distro did not create /etc/os-release as a link at all to /usr/lib/os-release.

Related Issue(s)

#1232

Handle the case when the host os uses /usr/lib/os-release

Handle the case when the os-release file is a symlink (need to constantly retarget into /mnt/host/)
Now checks if already in /mnt/host before prepending

Also pepper in debug statements to troubleshoot
@MauriceNino
Copy link
Owner

Hey there, thanks for the contribution! I will try to review it on the weekend!

@dantebarbieri
Copy link
Contributor Author

I'm happy to clean things up or make changes if you'd like in particular the behavior changes:

  • now are that the os function invokes refreshHostOsRelease on calls in case you update the host without restarting dash..
  • "Bound ..." message printed when the /etc/os-release is symlink-ed to the target under /mnt/host
  • resolveSymlink is a general helper for resolving symlinks (absolute, relative, even no link) in app/server/src/utils.ts

I would love to see this merge since it bothers me on my server.

@MauriceNino MauriceNino merged commit 508c832 into MauriceNino:dev Aug 10, 2025
1 check passed
@MauriceNino
Copy link
Owner

Just reviewed it and looks good to me! Will try to push out a new release as soon as possible. Thanks!

github-actions bot added a commit that referenced this pull request Aug 10, 2025
# [6.2.0](v6.1.0...v6.2.0) (2025-08-10)

### Bug Fixes

* auto sizing for chart not working on load ([6b88601](6b88601))
* **docs:** update configuration url in readme  ([#1227](#1227)) ([1941c26](1941c26)), closes [#1091](#1091) [#1168](#1168) [#1212](#1212)
* report host os instead of container os ([#1233](#1233)) ([508c832](508c832)), closes [#1232](#1232)

### Features

* added sub/root/base path routing ([#1229](#1229)) ([70c26d0](70c26d0))
@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 6.2.0

Please check the changelog for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants