← Back to issue list

cleanbuild should allow specifying options to 'lxc launch'

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1686766
Type
issue
State
closed
Author
~jdstrand
Labels
cleanbuild
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Request to pass custom options to lxc launch in snapcraft cleanbuild was closed without implementation, indicating the request was abandoned.

Suggested action:

No scores available.

Issue body

In some environments 'lxc launch' does not create a container with networking and a profile must be specified to lxc launch. In other environments, the user may want to specify the storage pool to use. It would be nice if snapcraft enabled some mechanism to pass options to lxc launch. Perhaps this could be 'cleanbuild --lxc-launch-options=...' but it might be fine to just tuck that into a configuration file. To workaround this in my environment, I adjusted /usr/lib/python3/dist-packages/snapcraft/internal/lxd.py to have: def _ensure_container(self):     check_call([         'lxc', 'launch', '--storage=default', '--profile=with-network', '-e',         'ubuntu:xenial/{}'.format(self._project_options.deb_arch),         self._container_name]) ... (ie, I added '--storage=default', '--profile=with-network')

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Request to pass custom options to lxc launch in snapcraft cleanbuild was closed without implementation, indicating the request was abandoned.
qwen/qwen3.6-35b-a3b Closed without implementation. The requested capability to pass custom arguments to lxc launch via cleanbuild was never added to snapcraft, leaving the feature abandoned.
qwen3.6-35b-a3b-mtp-q6 Closed without implementation. The request to pass custom arguments to lxc launch in snapcraft cleanbuild was abandoned. A local source patch served as a workaround, but no official fix or configuration option was added.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1480144 cleanbuild (through lxd) snapcraft (launchpad) closed Closed as a wishlist item. The request to integrate snapcraft with clean build environments like cowbuilder or LXD was abandoned due to lack of priority and activity.
75%