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

Rocks 1521 mount the managed instances apt configuration folder in a tmpfs folder for every overlay #884

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion craft_parts/executor/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Executor:
:param ignore_patterns: File patterns to ignore when pulling local sources.
"""

def __init__(
def __init__( # noqa: PLR0913
self,
*,
part_list: list[Part],
Expand All @@ -64,6 +64,7 @@ def __init__(
ignore_patterns: list[str] | None = None,
base_layer_dir: Path | None = None,
base_layer_hash: LayerHash | None = None,
use_host_sources: bool = False,
) -> None:
self._part_list = sort_parts(part_list)
self._project_info = project_info
Expand All @@ -73,11 +74,13 @@ def __init__(
self._base_layer_hash = base_layer_hash
self._handler: dict[str, PartHandler] = {}
self._ignore_patterns = ignore_patterns
self._use_host_sources = use_host_sources

self._overlay_manager = OverlayManager(
project_info=self._project_info,
part_list=self._part_list,
base_layer_dir=base_layer_dir,
use_host_sources=use_host_sources,
)

def prologue(self) -> None:
Expand Down
2 changes: 2 additions & 0 deletions craft_parts/lifecycle_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def __init__( # noqa: PLR0913
project_vars_part_name: str | None = None,
project_vars: dict[str, str] | None = None,
partitions: list[str] | None = None,
use_host_sources: bool = False,
**custom_args: Any, # custom passthrough args
) -> None:
# pylint: disable=too-many-locals
Expand Down Expand Up @@ -193,6 +194,7 @@ def __init__( # noqa: PLR0913
track_stage_packages=track_stage_packages,
base_layer_dir=base_layer_dir,
base_layer_hash=layer_hash,
use_host_sources=use_host_sources,
)
self._project_info = project_info
# pylint: enable=too-many-locals
Expand Down
Loading
Loading