Export important disk variables
This commit is contained in:
parent
00cf2ce260
commit
b80d27e467
|
@ -24,17 +24,17 @@ USED_LUKS=false
|
|||
# An array of disk related actions to perform
|
||||
DISK_ACTIONS=()
|
||||
# An associative array from disk id to a resolvable string
|
||||
declare -A DISK_ID_TO_RESOLVABLE
|
||||
declare -Ax DISK_ID_TO_RESOLVABLE
|
||||
# An associative array from disk id to parent gpt disk id (only for partitions)
|
||||
declare -A DISK_ID_PART_TO_GPT_ID
|
||||
declare -Ax DISK_ID_PART_TO_GPT_ID
|
||||
# An associative array to check for existing ids (maps to uuids)
|
||||
declare -A DISK_ID_TO_UUID
|
||||
# An associative set to check for correct usage of size=remaining in gpt tables
|
||||
declare -A DISK_GPT_HAD_SIZE_REMAINING
|
||||
# An associative from PTUUID to device
|
||||
declare -A DISK_PTUUID_TO_DEVICE
|
||||
declare -Ax DISK_PTUUID_TO_DEVICE
|
||||
# An associative from MDADM uuid to device
|
||||
declare -A DISK_MDADM_UUID_TO_DEVICE
|
||||
declare -Ax DISK_MDADM_UUID_TO_DEVICE
|
||||
|
||||
only_one_of() {
|
||||
local previous=""
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -o pipefail
|
||||
|
||||
[[ ${EXECUTED_IN_CHROOT} != true ]] \
|
||||
[[ $EXECUTED_IN_CHROOT != "true" ]] \
|
||||
&& { echo "This script must not be executed directly!" >&2; exit 1; }
|
||||
|
||||
# Source the systems profile
|
||||
|
|
Loading…
Reference in New Issue