Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Only update AppArmor profile if not chroot'ed #8843

Merged

Conversation

fiesh
Copy link
Contributor

@fiesh fiesh commented Feb 4, 2025

This prevents postinst script failure when run in a chroot environment.

This closes #8841.

Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: 190dbbe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Patch
dmg-builder Patch
electron-builder-squirrel-windows Patch
electron-builder Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@fiesh fiesh force-pushed the do-not-update-apparmor-in-chroot branch 2 times, most recently from 85b87f5 to 4177f93 Compare February 4, 2025 16:47
@fiesh fiesh changed the title Only update AppArmor profile if not chroot'ed fix: Only update AppArmor profile if not chroot'ed Feb 4, 2025
@fiesh fiesh force-pushed the do-not-update-apparmor-in-chroot branch from 0bd8e7f to 38cb462 Compare February 5, 2025 12:43
This prevents `postinst` script failure when run in a `chroot`
environment.

This closes electron-userland#8841.
@fiesh fiesh force-pushed the do-not-update-apparmor-in-chroot branch from 38cb462 to 2f13232 Compare February 5, 2025 12:43
@fiesh
Copy link
Contributor Author

fiesh commented Feb 5, 2025

Ok, I'm not sure why

https://github.com/electron-userland/electron-builder/actions/runs/13157636243/job/36726618639

fails. Is it trying to keep explicit executable paths out of the script? If so, should we better use which to see if the executable is available and then call it without an absolute path?

@mmaietta
Copy link
Collaborator

mmaietta commented Feb 5, 2025

@fiesh I gotchu covered, it just needs a snapshot update as the unit test verifies that the tpl scripts are copied correctly verbatim. I'll push a snapshot update to this PR

@mmaietta mmaietta merged commit 7fc7846 into electron-userland:master Feb 5, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postinst script for dpkg package does not work in chroot'ed environment
3 participants