From 7e071219145c4d986fb7d0fbfe514455fe6f160f Mon Sep 17 00:00:00 2001 From: jonct <2807816+jonct@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:21:09 -0400 Subject: [PATCH] Realign create action dependencies --- src/jlmkr/actions/create.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jlmkr/actions/create.py b/src/jlmkr/actions/create.py index af155bc..507f9be 100644 --- a/src/jlmkr/actions/create.py +++ b/src/jlmkr/actions/create.py @@ -2,14 +2,13 @@ # # SPDX-License-Identifier: LGPL-3.0-only -import contextlib -import os -import re +import sys from inspect import cleandoc from pathlib import Path, PurePath from textwrap import dedent +from actions.start import start_jail from cli import DISCLAIMER from paths import COMMAND_NAME, JAILS_DIR_PATH, SCRIPT_NAME, SCRIPT_DIR_PATH from utils.chroot import Chroot @@ -19,7 +18,8 @@ from utils.download import run_lxc_download_script from utils.files import stat_chmod, get_mount_point from utils.dataset import check_jail_name_valid, check_jail_name_available from utils.dataset import get_jail_config_path, get_jail_rootfs_path -from utils.dataset import get_jail_path, get_zfs_dataset, create_zfs_dataset, cleanup +from utils.dataset import get_jail_path, get_zfs_dataset, create_zfs_dataset +from utils.dataset import parse_os_release, cleanup def create_jail(**kwargs):