Realign create action dependencies
This commit is contained in:
parent
80f6c0e7d2
commit
7e07121914
|
@ -2,14 +2,13 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: LGPL-3.0-only
|
# SPDX-License-Identifier: LGPL-3.0-only
|
||||||
|
|
||||||
import contextlib
|
import sys
|
||||||
import os
|
|
||||||
import re
|
|
||||||
|
|
||||||
from inspect import cleandoc
|
from inspect import cleandoc
|
||||||
from pathlib import Path, PurePath
|
from pathlib import Path, PurePath
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
|
|
||||||
|
from actions.start import start_jail
|
||||||
from cli import DISCLAIMER
|
from cli import DISCLAIMER
|
||||||
from paths import COMMAND_NAME, JAILS_DIR_PATH, SCRIPT_NAME, SCRIPT_DIR_PATH
|
from paths import COMMAND_NAME, JAILS_DIR_PATH, SCRIPT_NAME, SCRIPT_DIR_PATH
|
||||||
from utils.chroot import Chroot
|
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.files import stat_chmod, get_mount_point
|
||||||
from utils.dataset import check_jail_name_valid, check_jail_name_available
|
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_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):
|
def create_jail(**kwargs):
|
||||||
|
|
Loading…
Reference in New Issue