Skip to content

Ensure overlay mounts create required directories#6870

Open
Ndukiye wants to merge 1 commit intocanonical:mainfrom
Ndukiye:cc-mounts-overlay-ensure-dirs
Open

Ensure overlay mounts create required directories#6870
Ndukiye wants to merge 1 commit intocanonical:mainfrom
Ndukiye:cc-mounts-overlay-ensure-dirs

Conversation

@Ndukiye
Copy link
Copy Markdown
Contributor

@Ndukiye Ndukiye commented May 6, 2026

Proposed Commit Message

fix(mounts): ensure overlay directories are created

Ensure required upper and work directories exist before overlay
mounts are applied. This prevents mount failures when directories
are missing during fstab processing.

Fixes #2916
LP: #1695277


## Additional Context
This change ensures cloud-init safely creates required directories
before attempting overlay filesystem mounts, improving robustness
on first boot scenarios.

## Test Steps
Run unit tests:
tox -e py3

Specifically:
pytest tests/unittests/config/test_cc_mounts.py -v

## Merge type

- [x] Squash merge using "Proposed Commit Message"
- [ ] Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cc_mounts should ensure_dir on lower, upper and workdir params

1 participant