Skip to content

cli: Fix generate.py to properly handle --root-dir (LP: #2137640)#566

Merged
slyon merged 2 commits intocanonical:mainfrom
slyon:lp2137640-generate-root-dir
Jan 12, 2026
Merged

cli: Fix generate.py to properly handle --root-dir (LP: #2137640)#566
slyon merged 2 commits intocanonical:mainfrom
slyon:lp2137640-generate-root-dir

Conversation

@slyon
Copy link
Contributor

@slyon slyon commented Jan 12, 2026

Description

Checklist

  • Runs make check successfully.
  • Retains code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad. LP#2137640

@slyon slyon changed the title cli: Fix generate.py to properly handle --root-dir cli: Fix generate.py to properly handle --root-dir (LP: #2137640) Jan 12, 2026
@slyon slyon force-pushed the lp2137640-generate-root-dir branch from 5dd2e60 to 8776cf7 Compare January 12, 2026 14:42
Copy link

@j5awry j5awry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pushing up this fix. One thing that still confuses me is the use case for systemd's installed generator being a different path with root-dir. It differs from how the systemd generator provided by netplan interprets --root-dir.

a better explanation in documentation (be it the CLI or provided docs) and in the changelog would be helpful.

@slyon slyon merged commit 365e234 into canonical:main Jan 12, 2026
17 of 19 checks passed
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.

2 participants