From 1d172ad6359ff62270d1bc415b5796e9564b323b Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Wed, 29 Sep 2021 23:21:19 +0200 Subject: [PATCH] reactive `image inspect` cmd since we're now no longer forced to wrap in docker --- image.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/image.py b/image.py index dc16788..438684f 100644 --- a/image.py +++ b/image.py @@ -8,6 +8,7 @@ from constants import DEVICES, FLAVOURS from config import config from distro import get_kupfer_https, get_kupfer_local from wrapper import enforce_wrap +from signal import pause def get_device_and_flavour(profile=None) -> tuple[str, str]: @@ -157,19 +158,14 @@ def cmd_build(): raise Exception('Error running post_cmds') -""" -This doesn't work, because the mount isn't passed through to the real host -""" -""" @cmd_image.command(name='inspect') def cmd_inspect(): device, flavour = get_device_and_flavour() image_name = get_image_name(device, flavour) - rootfs_mount = get_chroot_path(f'rootfs_{device}-flavour') + rootfs_mount = get_chroot_path(f'rootfs_{device}-{flavour}') mount_rootfs_image(image_name, rootfs_mount) logging.info(f'Inspect the rootfs image at {rootfs_mount}') - signal.pause() -""" + pause()