Rename dataset utils
This commit is contained in:
parent
7e6754cf99
commit
3125b13aa2
|
@ -15,9 +15,9 @@ from utils.config_parser import KeyValueParser, DEFAULT_CONFIG
|
|||
from utils.console import YELLOW, BOLD, NORMAL, eprint
|
||||
from utils.download import run_lxc_download_script
|
||||
from utils.files import stat_chmod, get_mount_point
|
||||
from utils.jail_dataset import check_jail_name_valid, check_jail_name_available
|
||||
from utils.jail_dataset import get_jail_config_path, get_jail_rootfs_path
|
||||
from utils.jail_dataset import get_jail_path, get_zfs_dataset, create_zfs_dataset, cleanup
|
||||
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.paths import COMMAND_NAME, JAILS_DIR_PATH, SCRIPT_NAME, SCRIPT_DIR_PATH
|
||||
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import subprocess
|
|||
|
||||
from utils.console import eprint
|
||||
from utils.editor import get_text_editor
|
||||
from utils.jail_dataset import check_jail_name_valid, check_jail_name_available
|
||||
from utils.jail_dataset import get_jail_config_path, jail_is_running
|
||||
from utils.dataset import check_jail_name_valid, check_jail_name_available
|
||||
from utils.dataset import get_jail_config_path, jail_is_running
|
||||
|
||||
|
||||
def edit_jail(jail_name):
|
||||
|
|
|
@ -8,7 +8,7 @@ import subprocess
|
|||
from collections import defaultdict
|
||||
from utils.console import NORMAL, UNDERLINE
|
||||
from utils.config_parser import parse_config_file
|
||||
from utils.jail_dataset import get_all_jail_names, get_jail_config_path, get_jail_rootfs_path, parse_os_release
|
||||
from utils.dataset import get_all_jail_names, get_jail_config_path, get_jail_rootfs_path, parse_os_release
|
||||
|
||||
|
||||
def list_jails():
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
|
||||
from actions.stop import stop_jail
|
||||
from utils.jail_dataset import check_jail_name_valid, check_jail_name_available
|
||||
from utils.jail_dataset import get_jail_path, cleanup
|
||||
from utils.dataset import check_jail_name_valid, check_jail_name_available
|
||||
from utils.dataset import get_jail_path, cleanup
|
||||
from utils.console import eprint
|
||||
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@ from utils.config_parser import parse_config_file
|
|||
from utils.console import eprint
|
||||
from utils.files import stat_chmod
|
||||
from utils.gpu import passthrough_intel, passthrough_nvidia
|
||||
from utils.jail_dataset import get_jail_path, jail_is_running
|
||||
from utils.jail_dataset import get_jail_config_path, get_jail_rootfs_path
|
||||
from utils.dataset import get_jail_path, jail_is_running
|
||||
from utils.dataset import get_jail_config_path, get_jail_rootfs_path
|
||||
from utils.paths import SHORTNAME, JAIL_ROOTFS_NAME
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import subprocess
|
|||
import time
|
||||
|
||||
from utils.console import eprint
|
||||
from utils.jail_dataset import jail_is_running
|
||||
from utils.dataset import jail_is_running
|
||||
|
||||
|
||||
def stop_jail(jail_name):
|
||||
|
|
|
@ -69,8 +69,8 @@ class CustomSubParser(argparse.ArgumentParser):
|
|||
|
||||
from utils.chroot import Chroot
|
||||
from utils.console import eprint, fail
|
||||
from utils.jail_dataset import check_jail_name_valid, check_jail_name_available
|
||||
from utils.jail_dataset import get_jail_path, get_jail_config_path, get_jail_rootfs_path
|
||||
from utils.dataset import check_jail_name_valid, check_jail_name_available
|
||||
from utils.dataset import get_jail_path, get_jail_config_path, get_jail_rootfs_path
|
||||
|
||||
from actions.exec import exec_jail
|
||||
from actions.status import status_jail
|
||||
|
@ -80,20 +80,20 @@ from actions.start import start_jail
|
|||
from actions.restart import restart_jail
|
||||
from actions.images import run_lxc_download_script
|
||||
|
||||
from utils.jail_dataset import cleanup, check_jail_name_valid, check_jail_name_available
|
||||
from utils.dataset import cleanup, check_jail_name_valid, check_jail_name_available
|
||||
from utils.download import run_lxc_download_script
|
||||
from utils.files import stat_chmod
|
||||
from utils.jail_dataset import get_zfs_dataset, create_zfs_dataset, remove_zfs_dataset
|
||||
from utils.dataset import get_zfs_dataset, create_zfs_dataset, remove_zfs_dataset
|
||||
|
||||
from actions.create import create_jail
|
||||
from utils.editor import get_text_editor
|
||||
from utils.jail_dataset import jail_is_running
|
||||
from utils.dataset import jail_is_running
|
||||
|
||||
from actions.edit import edit_jail
|
||||
from actions.stop import stop_jail
|
||||
from actions.remove import remove_jail
|
||||
|
||||
from utils.jail_dataset import get_all_jail_names, parse_os_release
|
||||
from utils.dataset import get_all_jail_names, parse_os_release
|
||||
from actions.list import list_jails
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import subprocess
|
|||
from pathlib import Path
|
||||
from textwrap import dedent
|
||||
from utils.console import eprint
|
||||
from utils.jail_dataset import get_jail_rootfs_path
|
||||
from utils.dataset import get_jail_rootfs_path
|
||||
from utils.paths import SHORTNAME
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue