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

Snap: cannot access /var/lib/ubuntu_dist_channel (used for OEM information) #28

Open
pieqq opened this issue Jun 12, 2019 · 0 comments
Open
Labels

Comments

@pieqq
Copy link

pieqq commented Jun 12, 2019

Hello! I was trying to package ubuntu-report in one of my snaps, and found an issue that happens with the snapcraft.yaml file from this repository as well.

On a device with an OEM image, if I run the debian package:

$ ubuntu-report show | grep DCD
    "DCD": "canonical-oem-somerville-bionic-amd64-xxx"

However, if I run the snap version, nothing comes out. I added debug info, and...

$ mysnap.ubuntu-report show -vv                                                                                                            
(...)                                                                                                                
INFO[0000] no DCD information: open /var/lib/ubuntu_dist_channel: no such file or directory                                                                                  
couldn't open /var/lib/ubuntu_dist_channel
(...)

It seems to be an issue with the files available by default in a snap runtime environment. I've asked a question on the snapcraft forum.

In the meantime I just wanted to open an issue here so you are aware about this.

Cheers!

@didrocks didrocks added the snap label Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants