mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-27 10:45:37 -04:00
cmd_image_inspect(): add profile-name arg
This commit is contained in:
parent
1179cdf212
commit
5b730ce342
1 changed files with 3 additions and 2 deletions
5
image.py
5
image.py
|
@ -415,10 +415,11 @@ def cmd_build(profile_name: str = None, build_pkgs: bool = True, block_target: s
|
||||||
|
|
||||||
@cmd_image.command(name='inspect')
|
@cmd_image.command(name='inspect')
|
||||||
@click.option('--shell', '-s', is_flag=True)
|
@click.option('--shell', '-s', is_flag=True)
|
||||||
def cmd_inspect(shell: bool = False):
|
@click.argument('profile')
|
||||||
|
def cmd_inspect(profile: str = None, shell: bool = False):
|
||||||
"""Open a shell in a device image"""
|
"""Open a shell in a device image"""
|
||||||
enforce_wrap()
|
enforce_wrap()
|
||||||
device, flavour = get_device_and_flavour()
|
device, flavour = get_device_and_flavour(profile)
|
||||||
# TODO: get arch from profile
|
# TODO: get arch from profile
|
||||||
arch = 'aarch64'
|
arch = 'aarch64'
|
||||||
# TODO: PARSE DEVICE SECTOR SIZE
|
# TODO: PARSE DEVICE SECTOR SIZE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue