← Back to issue list

build providers: re-exec as root

View original Github issue

Metadata

Project
snapcraft
Number
#2281
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged changes to re-execute snapcraft as root when invoked from a managed-host environment, resolving Launchpad bug #1791977. Approved by a reviewer, passed CI checks, and modified one file with 13 additions.

Suggested action:

No scores available.

Issue body

When snapcraft is called from managed-host environment, it needs to re-exec itself as root. LP: #1791977 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [ ] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged changes to re-execute snapcraft as root when invoked from a managed-host environment, resolving Launchpad bug #1791977. Approved by a reviewer, passed CI checks, and modified one file with 13 additions.
qwen3.6-35b-a3b-mtp-q6 Merged. Forces snapcraft to re-execute as root when invoked from a managed-host environment, resolving Launchpad bug #1791977.
qwen3.6-35b-a3b-mtp-q6 Merged. Ensures snapcraft re-executes as root when invoked from a managed-host environment, resolving Launchpad bug #1791977.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1791977 rerun snapcraft as root if on managed-host snapcraft (launchpad) closed Abandoned. The request to rerun snapcraft as root on managed hosts was closed without discussion or implementation.
75%
#3648 cli: reintroduce remote-build and promote to snapcraft help snapcraft merged Merged the reintroduction of the remote-build CLI command and promoted it to snapcraft help. Approved by one reviewer, passed CI checks, and resolved Launchpad bug #1943244 via a single-file, four-line deletion.
73%
#3039 build providers: setup initial apt source configuration snapcraft merged Merged refactoring centralizing snapcraft initialization in the base provider and adding apt source configuration via environment flags. Fixed a file permission error and streamlined installation. Approved and merged after CI checks.
70%
#100 packages: remove sudo calls (CRAFT-384) craft-parts merged Merged. Removed unnecessary sudo calls from apt and snap installation commands, causing execution to fail if permissions are insufficient. Approved after passing CI checks, with a reviewer noting a future explicit root check will be added.
70%