1
0
Fork 0
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:
A Holt 2020-10-19 15:49:43 -04:00 committed by GitHub
parent 0a0f38716a
commit f89ae8724d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)