mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 18:08:22 -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')
|
||||
@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"""
|
||||
enforce_wrap()
|
||||
device, flavour = get_device_and_flavour()
|
||||
device, flavour = get_device_and_flavour(profile)
|
||||
# TODO: get arch from profile
|
||||
arch = 'aarch64'
|
||||
# TODO: PARSE DEVICE SECTOR SIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue