Skip to content

hooks: move python binary and change scripts using it#416

Merged
alfonsosanchezbeato merged 1 commit intocanonical:mainfrom
alfonsosanchezbeato:move-python
Apr 15, 2026
Merged

hooks: move python binary and change scripts using it#416
alfonsosanchezbeato merged 1 commit intocanonical:mainfrom
alfonsosanchezbeato:move-python

Conversation

@alfonsosanchezbeato
Copy link
Copy Markdown
Member

Move python to a directory where the snapd apparmor default template does not allow access.

@alfonsosanchezbeato
Copy link
Copy Markdown
Member Author

alfonsosanchezbeato commented Mar 20, 2026

Opening as draft to see how tests do. This also requires these changes in snapd before being merged: canonical/snapd#16802

EDIT: undrafted now. The snapd change is in 2.75.2.

Comment thread hooks/034-python3-move.chroot Outdated
Comment on lines +15 to +16
/usr/bin/py3clean
/usr/bin/py3compile
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should those be removed or moved?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point, I've removed as I do not think cloud-init or netplan uses them. Also moved py3versions.

Move python to a directory where the snapd apparmor default template does not
allow access.
@alfonsosanchezbeato alfonsosanchezbeato merged commit 25c6ff4 into canonical:main Apr 15, 2026
9 of 12 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.

3 participants