-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Tear down underlying atoms if atomfs mount fails (#565)
The atomfs bad verity test case ends up leaving verity and loop devices which then break other test cases. The root cause is that when the test case attempts to mount the invalid atomfs the underlying atom was already mounted. Once the verity fails, stacker exits but does not remove any previously mounted at atoms in the molecule. Fix this by creating a cleanup function which runs if we fail to mount an atom. - Add a check to the atomfs.bats which checks for leftover loop mounts Fixes: #541 Signed-off-by: Ryan Harper <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
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