-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
156 changed files
with
146 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from .exceptions import PreflightError | ||
from .printer import debug, warn | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from __future__ import annotations | ||
|
||
from .binarymanager import Binaries | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from .command import Command, stringify | ||
from .exceptions import PreflightError | ||
from .location import Location | ||
|
@@ -175,7 +174,7 @@ def __validate_func( | |
) -> None: | ||
cmd_str = stringify(cmd.name, args, kwargs) | ||
trace(f"{location} Validating {cmd_str}.") | ||
command.validate(location, *args, **kwargs), | ||
(command.validate(location, *args, **kwargs),) | ||
success(f"{location}: Validated {cmd_str}.", verbosity=4) | ||
|
||
def __dependency_func( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.helper.run import run | ||
from cleanroom.location import Location | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.helper.run import run | ||
from cleanroom.location import Location | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.location import Location | ||
|
@@ -26,7 +25,7 @@ def __init__(self, **services: typing.Any) -> None: | |
syntax="DMVERITY_IMAGE FILE " "[base_image=<BASE_FILE_IMAGE]", | ||
help_string="Export a filesystem image.", | ||
file=__file__, | ||
**services | ||
**services, | ||
) | ||
|
||
def validate( | ||
|
@@ -43,7 +42,7 @@ def __call__( | |
location: Location, | ||
system_context: SystemContext, | ||
*args: typing.Any, | ||
**kwargs: typing.Any | ||
**kwargs: typing.Any, | ||
) -> None: | ||
"""Execute command.""" | ||
verity_file = args[0] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from tempfile import TemporaryDirectory | ||
from cleanroom.exceptions import GenerateError | ||
from cleanroom.binarymanager import Binaries | ||
|
@@ -121,9 +120,7 @@ def _populate_with_efi_emulator(staging_area: str, efi_emulator: str): | |
</dict> | ||
</dict> | ||
</plist> | ||
""".encode( | ||
"utf-8" | ||
) | ||
""".encode("utf-8") | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.exceptions import GenerateError | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.location import Location | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.exceptions import GenerateError | ||
|
@@ -34,7 +33,7 @@ def __init__(self, **services: typing.Any) -> None: | |
syntax="<ROOTFS_IMAGE> [usr_only=True]", | ||
help_string="Create a root filesystem image", | ||
file=__file__, | ||
**services | ||
**services, | ||
) | ||
|
||
def validate( | ||
|
@@ -51,7 +50,7 @@ def __call__( | |
location: Location, | ||
system_context: SystemContext, | ||
*args: typing.Any, | ||
**kwargs: typing.Any | ||
**kwargs: typing.Any, | ||
) -> None: | ||
"""Execute command.""" | ||
self._usr_only = kwargs.get("usr_only", True) | ||
|
@@ -78,6 +77,6 @@ def __call__( | |
"-noX", | ||
"-processors", | ||
"1", | ||
work_directory=system_context.fs_directory | ||
work_directory=system_context.fs_directory, | ||
) | ||
size_extend(rootfs_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.location import Location | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.helper.run import run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.location import Location | ||
from cleanroom.systemcontext import SystemContext | ||
|
@@ -24,7 +23,7 @@ def __init__(self, **services: typing.Any) -> None: | |
"gpg_dir=<path_to_gpg_dir>", | ||
help_string="Enable extra setup for the pacman keyring.", | ||
file=__file__, | ||
**services | ||
**services, | ||
) | ||
|
||
def validate( | ||
|
@@ -40,7 +39,7 @@ def __call__( | |
location: Location, | ||
system_context: SystemContext, | ||
*args: typing.Any, | ||
**kwargs: typing.Any | ||
**kwargs: typing.Any, | ||
) -> None: | ||
"""Execute command.""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.helper.archlinux.pacman import pacman_report | ||
|
@@ -23,7 +22,7 @@ def __init__(self, **services: typing.Any) -> None: | |
"_pacman_write_package_data", | ||
help_string="Write pacman package data into the filesystem.", | ||
file=__file__, | ||
**services | ||
**services, | ||
) | ||
|
||
def validate( | ||
|
@@ -37,7 +36,7 @@ def __call__( | |
location: Location, | ||
system_context: SystemContext, | ||
*args: typing.Any, | ||
**kwargs: typing.Any | ||
**kwargs: typing.Any, | ||
) -> None: | ||
"""Execute command.""" | ||
pacman_report( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.location import Location | ||
from cleanroom.systemcontext import SystemContext | ||
|
@@ -23,7 +22,7 @@ def __init__(self, **services: typing.Any) -> None: | |
syntax="<STATIC> [pretty=<PRETTY>]", | ||
help_string="Set the hostname of the system.", | ||
file=__file__, | ||
**services | ||
**services, | ||
) | ||
|
||
def validate( | ||
|
@@ -39,7 +38,7 @@ def __call__( | |
location: Location, | ||
system_context: SystemContext, | ||
*args: typing.Any, | ||
**kwargs: typing.Any | ||
**kwargs: typing.Any, | ||
) -> None: | ||
"""Execute command.""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.binarymanager import Binaries | ||
from cleanroom.command import Command | ||
from cleanroom.helper.btrfs import BtrfsHelper | ||
|
@@ -59,7 +58,7 @@ def __init__(self, **services: typing.Any) -> None: | |
help_string="Implicitly run before any " | ||
"other command of a system is run.", | ||
file=__file__, | ||
**services | ||
**services, | ||
) | ||
|
||
def validate( | ||
|
@@ -126,7 +125,7 @@ def __call__( | |
location: Location, | ||
system_context: SystemContext, | ||
*args: typing.Any, | ||
**kwargs: typing.Any | ||
**kwargs: typing.Any, | ||
) -> None: | ||
"""Execute command.""" | ||
_setup_scratch_directory(system_context, self._service("btrfs_helper")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.location import Location | ||
from cleanroom.command import Command | ||
from cleanroom.systemcontext import SystemContext | ||
|
@@ -35,7 +34,7 @@ def __call__( | |
location: Location, | ||
system_context: SystemContext, | ||
*args: typing.Any, | ||
**kwargs: typing.Any | ||
**kwargs: typing.Any, | ||
) -> None: | ||
"""Execute command.""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
@author: Tobias Hunger <[email protected]> | ||
""" | ||
|
||
|
||
from cleanroom.command import Command | ||
from cleanroom.systemcontext import SystemContext | ||
from cleanroom.location import Location | ||
|
Oops, something went wrong.