ubports / ubports-pdk

Platform Development Kit for Ubuntu Touch
GNU General Public License v3.0
39 stars 8 forks source link

Mounting PDK source dir fails for snap #12

Closed jonnius closed 3 years ago

jonnius commented 3 years ago

Only for the snap version, mounting the PDK source dir fails.

# journalctl -u ubports-pdk-mount.service
-- Logs begin at Sun 2021-07-11 09:23:36 UTC, end at Sun 2021-07-11 09:27:16 UTC. --
Jul 11 09:23:39 linux systemd[1]: Starting Mount PDK host directory...
Jul 11 09:23:39 linux bash[512]: mount: /pdk/settings: WARNING: device write-protected, mounted read-only.
Jul 11 09:23:39 linux bash[505]: /pdk/settings still mounted
Jul 11 09:23:39 linux bash[520]: read: Connection reset by peer
Jul 11 09:23:39 linux systemd[1]: ubports-pdk-mount.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 09:23:39 linux systemd[1]: ubports-pdk-mount.service: Failed with result 'exit-code'.
Jul 11 09:23:39 linux systemd[1]: Failed to start Mount PDK host directory.

Sources pulled as described in the README do not end up in the PDK environment directory therefore.

fredldotme commented 3 years ago

🤦I pushed the VM-side change to the wrong repo. Pushed now, should be available by 23:00 CEST time. Requires a new image pull.

fredldotme commented 3 years ago

If you want to test the change locally, edit /usr/libexec/ubports-pdk-mount in the VM and make it look like this:

https://gitlab.com/ubports/core/rootfs-builder-debos/-/commit/bddf1bb04a1eebcb2195f56811ba785c7013e68c

jonnius commented 3 years ago

Yes. That solves it. :)