Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Require the runtime to mount Spec.Mounts in order
If we don't specify this, some bundle-authors or runtime-implementer might expect the runtime to intelligently order mounts to get the "right" order. But that's not possible because: $ mkdir -p a/b/c d/e/f h # mount --bind a/b h # mount --bind d a/b $ tree --charset=ascii h h `-- c But in the other order: # umount a/b # umount h # mount --bind d a/b # mount --bind a/b h $ tree --charset=ascii h h `-- e `-- f So there's no "right" order. Allowing the bundle-author to specify their intended order is both easy to implement and unambiguous. Signed-off-by: W. Trevor King <[email protected]>
- Loading branch information