-
Notifications
You must be signed in to change notification settings - Fork 657
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
[snap] need to reach out of $SNAP for host properties #1781
Comments
Qt reads |
I wonder if it's a |
Given that the output of
I would say that's pretty intentional. That said, I agree that if it's not the actual Ubuntu Core distribution running (and not the core snap), then it should probably have what the host has in there. Right about LXD, but that still doesn't help with Qt (it reads a hard-coded |
Well, that would be true on a Ubuntu Core 18 system, it is not, on a Classic system with the core18 snap, IMO. And then the discrepancy between lsb- and os-release… |
Right, what I was trying to say 😄 |
Looking at the core18 environment and code, |
Is the proposed solution to parse the file in I am not running a core-18 image but would it be safe to assume that reading the Parsing the
|
What I am thinking is we try to open the QFile fileDescriptor("/etc/lsb-release")
if (!fileDescriptor.open(read-only-mode))
{
return make_pair(QSysInfo::productType(), QSysInfo::productVersion())
}
else
{
// read-in and parse file, return pair.
} The real question is if the |
2105: [platform] Read Snap Linux OS Release r=ricab a=surahman **_Issue #1781:_** Creating changes requested in #2096 on a new branch instead of doing a hard reset on the original branch to maintain the changes in the original files whilst I work. Tests have been added to the `PlatformLinux` fixture and an empty value in a field is treated as `unknown`: ``` NAME="" ... VERSION_ID="" ``` I have not wired into `/src/daemon/daemon.cpp` string pollination because the suggested format of `distro_name-distro_rel` does not match the original. Co-authored-by: Saad Ur Rahman <saad.ur.rahman@gmail.com>
All of our instances are reported as launched on
ubuntu-core-18
now, due to strict confinement andbase: core18
. We should try and find a way to reach out to get the actual host OS.multipass/src/daemon/daemon.cpp
Lines 116 to 117 in d9a7264
The text was updated successfully, but these errors were encountered: