Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Make snap mount directory configurable #119
Conversation
zyga
added some commits
Aug 26, 2016
|
that's a surprisingly small number of places we use that |
zyga
reviewed
Aug 26, 2016
| void setup_snappy_os_mounts() | ||
| { | ||
| debug("%s", __func__); | ||
| char rootfs_dir[MAX_BUF] = { 0 }; | ||
| - // Create a temporary directory that will become the root directory of this |
|
|
Conan-Kudo
commented
Aug 26, 2016
|
|
zyga
reviewed
Aug 26, 2016
| @@ -94,19 +94,21 @@ | ||
| # for running snaps on classic | ||
| mount options=(rw rslave) -> /, |
zyga
Aug 26, 2016
Collaborator
FYI: this is split because in the past the regular expression /{tmp/snap.rootfs_*,}snap/ covered /snap which is no longer a constant.
jdstrand
reviewed
Aug 26, 2016
| - /{tmp/snap.rootfs_*,}snap/ r, | ||
| - /{tmp/snap.rootfs_*,}snap/** r, | ||
| + /tmp/snap.rootfs_*/snap/ r, | ||
| + /tmp/snap.rootfs_*/snap/** r, |
jdstrand
Aug 26, 2016
Contributor
I'm not sure how this change is related to this PR, but the change is fine.
+1 on all changes.
|
Code changes look good to me and I see that @jdstrand acked the policy changes. Thanks! |
zyga
merged commit 7786446
into
master
Aug 26, 2016
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
zyga
deleted the
snap-mount-dir
branch
Sep 5, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedAug 26, 2016
This patch adds the configuration option --with-snap-mount-dir that
can change the default /snap directory to another location. The code
has been tweaked to respect the new macro SNAP_MOUNT_DIR as well as
to treat /snap bind mount specially.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com