Skip to content

Commit 1d8952d

Browse files
committed
unmount current iso before intermediate upgrade runs
1 parent f305c88 commit 1d8952d

File tree

1 file changed

+6
-1
lines changed
  • salt/manager/tools/sbin

1 file changed

+6
-1
lines changed

salt/manager/tools/sbin/soup

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ verify_es_version_compatibility() {
17841784
# We expect to upgrade to the latest compatiable minor version of ES
17851785
create_intermediate_upgrade_verification_script $es_verification_script
17861786

1787-
if [[ $is_airgap -eq 0 ]]; then
1787+
if [[ $is_airgap -eq 0 ]] || [[ $nonairgap_useiso -eq 0 ]] ; then
17881788
run_airgap_intermediate_upgrade
17891789
else
17901790
run_network_intermediate_upgrade
@@ -1798,6 +1798,11 @@ run_airgap_intermediate_upgrade() {
17981798
# preserve ISOLOC value, so we can try to use it post intermediate upgrade
17991799
local originally_requested_iso_location="$ISOLOC"
18001800

1801+
if [[ -d /tmp/soagupdate ]]; then
1802+
echo -e "\nUnmounting current ISO before running intermediate upgrade\n"
1803+
unmount_update
1804+
fi
1805+
18011806
echo "You can download the $next_step_so_version ISO image from https://download.securityonion.net/file/securityonion/securityonion-$next_step_so_version.iso"
18021807
echo -e "\nIf you have the next ISO / USB ready, enter the path now eg. /dev/sdd, /home/onion/securityonion-$next_step_so_version.iso:"
18031808

0 commit comments

Comments
 (0)