Closed bootchk closed 5 years ago
It looks like the issue is not in flatpack at all. Maybe we have some issues with ubuntu disco. First, try to add - !Sh 'touch /etc/resolv.conf
to the container build. If it works we'll probably consider it a bug in vagga. (I.e. I'm not sure anybody has tested ubuntu disco, I can check later)
I tried your suggestion, it did not help. It is not just disco, same problem in cosmic. When I follow the links to resolv.conf, they seem broken. /etc/resolv.conf is a link to ../run/systemd/resolve/stub-resolv.conf but ../run is empty.
Since I am not sure how that all evolves, I think I will try a newer host machine (mine is 16.04) and an older OS in the container.
Oh, then just remove a link - !Sh "rm /etc/resolv.conf
, vagga will create a valid file after the build process.
FYI, I'm not sure I've tested anything newer than bionic.
Yes, that helps, to rm resolv.conf at the end of any container setup.
This works for a container with ubuntu 22.04 (jammy) also.
This from vagga.yml:
I am just playing with flatpak, I wanted to use it inside vagga as a sandbox. I haven't tried this outside of vagga. I know flatpak is newish and Ubuntu might be a few versions behind so the problem is probably in flatpak. I did try this in vagga with cosmic, and I only got the latter errors about resolv.conf. For what its worth, I am reporting it.