Skip to content

Commit

Permalink
working on idaholab#266, Malcolm ISO should format bigger drives for …
Browse files Browse the repository at this point in the history
…index and artifact storage, NOT DONE YET
  • Loading branch information
mmguero committed Mar 20, 2024
1 parent ba30292 commit dd9b376
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ else
fi
if [ -f "$CAPTURE_STORAGE_FORMAT_FILE" ]; then
logger "Initializing disk(s) to store captured artifacts"
date >>/var/log/sensor-capture-disk-config.log 2>&1
python3 /usr/local/bin/sensor-capture-disk-config.py -u $CAPTURE_STORAGE_FORMAT_FLAG >>/var/log/sensor-capture-disk-config.log 2>&1
date >>/var/log/os-disk-config.log 2>&1
python3 /usr/local/bin/os-disk-config.py -m hedgehog -u $CAPTURE_STORAGE_FORMAT_FLAG >>/var/log/os-disk-config.log 2>&1
rm -f "$CAPTURE_STORAGE_FORMAT_FILE"
fi
Expand Down
6 changes: 3 additions & 3 deletions shared/bin/capture-format-wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ else
CAPTURE_STORAGE_FORMAT_FILE="/etc/capture_storage_format"
fi

if [[ -f "$CAPTURE_STORAGE_FORMAT_FILE" ]] || pgrep -f "sensor-capture-disk-config.py" >/dev/null 2>&1; then
if [[ -f "$CAPTURE_STORAGE_FORMAT_FILE" ]] || pgrep -f "os-disk-config.py" >/dev/null 2>&1; then
trap finish EXIT
yes | zenity --progress --pulsate --no-cancel --auto-close --text "Capture storage media are being prepared..." --title "Preparing Storage" &
while [[ -f "$CAPTURE_STORAGE_FORMAT_FILE" ]] || pgrep -f "sensor-capture-disk-config.py" >/dev/null 2>&1; do
yes | zenity --progress --pulsate --no-cancel --auto-close --text "Large storage media are being prepared..." --title "Preparing Storage" &
while [[ -f "$CAPTURE_STORAGE_FORMAT_FILE" ]] || pgrep -f "os-disk-config.py" >/dev/null 2>&1; do
sleep 2
done
fi
Loading

0 comments on commit dd9b376

Please sign in to comment.