Merge lp://staging/~mvo/snappy/snappy-snapfs-mount into lp://staging/~snappy-dev/snappy/snappy-moved-to-github
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~mvo/snappy/snappy-snapfs-mount |
Merge into: | lp://staging/~snappy-dev/snappy/snappy-moved-to-github |
Prerequisite: | lp://staging/~mvo/snappy/snappy-snapfs-install-via-unpack |
Diff against target: |
948 lines (+411/-134) 11 files modified
debian/ubuntu-snappy-cli.dirs (+1/-0) dirs/dirs.go (+2/-0) pkg/clickdeb/deb.go (+29/-23) pkg/file.go (+81/-0) pkg/snapfs/snapfs.go (+47/-22) pkg/snapfs/snapfs_test.go (+0/-9) snappy/pkgformat.go (+0/-64) snappy/snapp.go (+73/-5) snappy/snapp_snapfs_test.go (+93/-11) systemd/systemd.go (+46/-0) systemd/systemd_test.go (+39/-0) |
To merge this branch: | bzr merge lp://staging/~mvo/snappy/snappy-snapfs-mount |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Niemeyer | Approve | ||
John Lenton (community) | Approve | ||
Review via email:
|
Description of the change
Add support to (auto)mount the snapfs based snaps. It will unpack the meta-data to disk (to speedup snappy list etc) but keep the rest in the squashfs blob and (auto)mount at runtime.
This is a bit of a RFC branch, I'm not yet super happy about it. It will put the blob into
/apps/
and will mount that to:
/apps/
The downside of this approach is of course that the binary/service paths of the deb backend and the squashfs backend are no longer identical which makes the code that writes that a bit ugly.
I think we have three option and would love to get feedback which one is best:
1. keep it like its done in this branch given and cleanup once the clickdeb backend is killed
2. change deb backend to write the actual (non-meta) data to "run/" as well
3. put the blob.snap as "/apps/
(which complicates the removal a bit because its no longer enough to just rm -rf the /apps/$pkg/$version dir)
Unmerged revisions
- 767. By Michael Vogt
-
more documenation and improve error reporting (thanks Gustavo)
- 766. By Michael Vogt
-
use properly terminated sentences (thanks gustavo)
- 765. By Michael Vogt
-
merged lp:snappy
- 764. By Michael Vogt
-
pkg/snapfs/
snapfs. go: use filepath.Clean() in BlobPath - 763. By Michael Vogt
-
add comment about little endian squashfs
- 762. By Michael Vogt
-
add more tests
- 761. By Michael Vogt
-
refactor and ove MountUnit handling to systemd package
- 760. By Michael Vogt
-
address review comments
- 759. By Michael Vogt
-
improve comments
- 758. By Michael Vogt
-
unmount after deactivate
4. put the .snap in /var/snappy/blobs?