Delete macOS GCA keys and dhcp lease after provisioning

This ensures that link-local IPv6 address is unique per
each VM.

Task-number: QTQAINFRA-7383
Pick-to: 6.9 6.8 6.5
Change-Id: I53434ec3a158cec09f03c96087a401ef05f47b86
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit b8995e0ebc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Toni Saario 2025-09-05 13:08:19 +03:00 committed by Qt Cherry-pick Bot
parent 033ea9e0d5
commit b8441b17f9
13 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
# Copyright (C) 2025 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# Delete GCA plists and leases plist to force their regeneration after next reboot
# This avoids IPv6 link-local address collision that would happen with
# multiple VMs from same image.
sudo rm -rf /var/db/dhcpclient

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh

View File

@ -0,0 +1,3 @@
#!/bin/sh
"$(dirname "$0")"/../common/macos/clean_gca_keys.sh