V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -15,9 +15,9 @@ guard_sourcing
|
||||
#######################################
|
||||
# Validates var_mount_path to be processed.
|
||||
# Arguments:
|
||||
# $1 var_mount_path
|
||||
# 1 var_mount_path
|
||||
# Returns:
|
||||
# 0: Skip mounting,
|
||||
# 0: Skip mounting
|
||||
# 1: Process mount
|
||||
#######################################
|
||||
skip_path() {
|
||||
@@ -33,9 +33,9 @@ skip_path() {
|
||||
# ERR_MOUNTING_DEV
|
||||
# TARGET
|
||||
# Arguments:
|
||||
# $1: MOUNT_PATH
|
||||
# $2: MOUNT_DEVICE
|
||||
# $3: MOUNT_OPTIONS
|
||||
# 1: MOUNT_PATH
|
||||
# 2: MOUNT_DEVICE
|
||||
# 3: MOUNT_OPTIONS
|
||||
#######################################
|
||||
mount_with_dir() {
|
||||
declare var_mount_path="$1" var_mount_device="$2" var_mount_options="$3"
|
||||
@@ -54,10 +54,10 @@ mount_with_dir() {
|
||||
#######################################
|
||||
# Device Path Resolver
|
||||
# Arguments:
|
||||
# $1: Device
|
||||
# $2: Partition
|
||||
# $3: Boolean Encryption
|
||||
# $4: Encryption Label
|
||||
# 1: Device
|
||||
# 2: Partition
|
||||
# 3: Boolean Encryption
|
||||
# 4: Encryption Label
|
||||
#######################################
|
||||
resolve_device() {
|
||||
declare local_var_dev="$1" local_var_partition="$2" local_var_enc_boolean="$3" local_var_enc_label="$4"
|
||||
@@ -71,8 +71,8 @@ resolve_device() {
|
||||
#######################################
|
||||
# Validates btrfs compression algo and level.
|
||||
# Arguments:
|
||||
# $1 var_fs_btrfs_compress
|
||||
# $2 var_fs_btrfs_level
|
||||
# 1 var_fs_btrfs_compress
|
||||
# 2 var_fs_btrfs_level
|
||||
# Returns:
|
||||
# 0: Valid combination.
|
||||
# 1: Invalid combination.
|
||||
@@ -88,14 +88,20 @@ validate_btrfs_compression() {
|
||||
#######################################
|
||||
# Function for mounting all partitions for debootstrap, including the generation of btrfs subvolumes.
|
||||
# Globals:
|
||||
# ERR_MOUNTING_DEV
|
||||
# ERR_MOUNTING_ROOT
|
||||
# HMP_MOUNTPATH_DEV
|
||||
# TARGET
|
||||
# VAR_RECIPE_STRING
|
||||
# VAR_SAFE_MNT_BASE
|
||||
# VAR_SETUP_PART
|
||||
# Arguments:
|
||||
# None
|
||||
# None
|
||||
# Returns:
|
||||
# ERR_BTRFS_INITPH
|
||||
# ERR_BTRFS_OPTION
|
||||
# ERR_BTRFS_SUBVOL
|
||||
# ERR_MOUNTING_DEV
|
||||
# ERR_MOUNTING_ROOT
|
||||
# 0: Successfully executed commands.
|
||||
#######################################
|
||||
mount_partition() {
|
||||
### Mount "/"-filesystem
|
||||
|
||||
Reference in New Issue
Block a user