forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c/snap-bootstrap: refactor systemd-mount dm-verity/overlayfs options …
…API (canonical#14790) * c/snap-bootstrap: refactor systemd-mount dm-verity/overlayfs options API * snap-bootstrap: simplify dm-verity option names * c/snap-bootstrap: add new interface for mount options - hide validation logic behind the new interface. - undotted some error messages. - dotted a few comment lines that look more like full sentences. * c/snap-bootstrap: simply options interface to systemd-mount dm-verity and overlayfs options are not to be used together so it makes sense to further simplify their interface under a new single FsOpts field. * c/snap-bootstrap: refactor overlayfs options implementation * c/snap-bootstrap: use strings.Join for multiple overlayfs lower dirs * cmd/snap-bootstrap: add extra test for the wrong fsOpts type case * cmd/snap-bootstrap: fix variable naming in tests * /c/snap-bootstrap: use new mount options API in CVM mode
- Loading branch information
Showing
5 changed files
with
281 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.