V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -11,21 +11,22 @@
|
||||
# SPDX-Security-Contact: security@coresecret.eu
|
||||
|
||||
### Definition of error codes
|
||||
declare -girx ERR_UNSUPPORTED_BASH=255 # Unsupported Bash.
|
||||
declare -girx ERR_UNSUPPORTED_BASH=255 # The Bash is not supported.
|
||||
declare -girx ERR_USER_IS_NOT_ROOT=254 # Not running as root.
|
||||
declare -girx ERR_UNSAFE_CHARACTER=253 # Invalid Character used.
|
||||
declare -girx ERR_UNBOUND_VARIABLE=252 # Unbound Variable
|
||||
declare -girx ERR_TRAPPED_SIG_INT=251 # Installer caught an INT and confirmed by User.
|
||||
declare -girx ERR_FLOCK_PROTECTED=250 # Cannot open lockfile for writing.
|
||||
declare -girx ERR_FLOCK_COLLISION=249 # The Script is already running.
|
||||
declare -girx ERR_UNSAFE_CHARACTER=253 # An invalid character has been used.
|
||||
declare -girx ERR_UNBOUND_VARIABLE=252 # Unbound variable.
|
||||
declare -girx ERR_TRAPPED_SIG_INT=251 # The installer detected an INT, which was then confirmed by the user.
|
||||
declare -girx ERR_FLOCK_PROTECTED=250 # The lock file cannot be opened for writing.
|
||||
declare -girx ERR_FLOCK_COLLISION=249 # The script is already running.
|
||||
declare -girx ERR_NO_DOWNLOAD_ARG=248 # 'scurl()' or 'swget()': No arguments specified.
|
||||
declare -girx ERR_DOWNLOAD_FAILED=247 # 'scurl()' or 'swget()': Download failed.
|
||||
declare -girx ERR_NO_VALID_RECIPE=246 # No valid RECIPE string found in partitioning.yaml
|
||||
declare -girx ERR_NO_VALID_RECIPE=246 # No valid 'recipe' string was found in the partitioning.yaml file.
|
||||
declare -girx ERR_INVALID_IPV4=245 # IPv4 validation failure.
|
||||
declare -girx ERR_INVALID_IPV6=244 # IPv6 validation failure.
|
||||
declare -girx ERR_INVALID_PORT=243 # Port validation failure.
|
||||
declare -girx ERR_ARG_MISMATCH=242 # Wrong Number of optional Arguments provided.
|
||||
declare -girx ERR_PARTITIONTBL=241 # Not allowed Partition-table provided.
|
||||
declare -girx ERR_ARG_MISMATCH=242 # The wrong number of optional arguments has been provided.
|
||||
declare -girx ERR_PARTITIONTBL=241 # The partition table is not allowed.
|
||||
declare -girx ERR_READ_PARTTBL=240 # The partition could not be deleted, created, or the UUID of the partition could not be read.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -65,13 +65,20 @@ declare -gx VAR_RECIPE_STRING=""
|
||||
### Variable partition table ("gpt" || "mbr")
|
||||
declare -gx VAR_RECIPE_TABLE=""
|
||||
### Assoziative Array (HashMap) for devices and accompanying partitions
|
||||
declare -Agx HMP_RECIPE_DEV_PARTITIONS=()
|
||||
declare -Ag HMP_RECIPE_DEV_PARTITIONS
|
||||
|
||||
### 3200_partitioning.sh:
|
||||
### 3200_partitioning.sh
|
||||
### Assoziative Array (HashMap) to store UUIDs for each partition
|
||||
### HMP_UUID_PARTITION["UUID_${DEV}${PARTITION}"]="${UUID}"
|
||||
declare -Ag HMP_UUID_PARTITION=()
|
||||
### HMP_UUID_PARTITION["UUID_${var_dev}${var_part}"]="${var_uuid}"
|
||||
declare -Ag HMP_UUID_PARTITION
|
||||
|
||||
### 3220_partition_encryption.sh
|
||||
### Assoziative Array (HashMap) to store UUIDs for each partition
|
||||
|
||||
|
||||
|
||||
declare -Ag HMP_EPHEMERAL_DEV HMP_EPHEMERAL_ENCLABEL
|
||||
declare -Ag HMP_ENCRYPTIONLABEL_UUID HMP_MOUNTPATH_ENCRYPTIONLABEL
|
||||
|
||||
### TODO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user