mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
scripts/local_facts.fact: Clarify STAGE var
This commit is contained in:
parent
0a0f38716a
commit
f89ae8724d
1 changed files with 4 additions and 5 deletions
|
@ -20,14 +20,13 @@ NETWORK_MANAGER="none"
|
|||
SYSTEMD_NETWORKD="none"
|
||||
|
||||
|
||||
# STAGE is for ./iiab-install which runs Ansible with iiab-stages.yml
|
||||
# STAGE variable is for ./iiab-install which runs Ansible with iiab-stages.yml
|
||||
# - fresh installs start at STAGE 0
|
||||
# - interrupted installs record the last completed STAGE (1-9)
|
||||
#
|
||||
# We initialize it to '0' (zero) to cover both situations: (1) iiab.env doesn't
|
||||
# exist and (2) iiab.env exists but fails to set STAGE=<something> (source
|
||||
# command below tries to use the file...to set the STAGE variable).
|
||||
source /etc/iiab/iiab.env || true # Var auto-populated so no if required!
|
||||
# We initialize it to '0' (zero) to cover the following 2 possibs: (1) iiab.env
|
||||
# doesn't exist, or (2) iiab.env exists but fails to set STAGE=<something>
|
||||
source /etc/iiab/iiab.env || true # STAGE var auto-set, so no "if" required.
|
||||
|
||||
if tmp=$(grep ^ID= /etc/*elease); then
|
||||
OS=$(echo $tmp | cut -d= -f2)
|
||||
|
|
Loading…
Add table
Reference in a new issue