From: cel@kernel.org
To: <kdevops@lists.linux.dev>
Cc: Chuck Lever <chuck.lever@oracle.com>
Subject: [RFC PATCH 3/3] get-distro-default-bridge.sh: Set specific IP address for Fedora
Date: Wed, 1 May 2024 10:03:35 -0400 [thread overview]
Message-ID: <20240501140335.49067-3-cel@kernel.org> (raw)
In-Reply-To: <20240501140335.49067-1-cel@kernel.org>
From: Chuck Lever <chuck.lever@oracle.com>
Fedora appears to use 192.168.122.1 for both guestfs and vagrant.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
scripts/get-distro-default-bridge.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/get-distro-default-bridge.sh b/scripts/get-distro-default-bridge.sh
index d85625c4ebd8..d1321db5acf2 100755
--- a/scripts/get-distro-default-bridge.sh
+++ b/scripts/get-distro-default-bridge.sh
@@ -8,6 +8,12 @@ VIRT_TYPE=$2
# is if you are using vagrant or guestfs. If your distribution needs
# a different deafult it should be easy for you to extend it here.
+DISTRO_FEDORA=`scripts/os-release-check.sh fedora`
+if [[ "$DISTRO_FEDORA" == "y" ]]; then
+ echo "192.168.122.1"
+ exit 0
+fi
+
if [[ "$VIRT_TYPE" == "vagrant" ]]; then
echo "192.168.124.1"
else
--
2.44.0
next prev parent reply other threads:[~2024-05-01 14:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-01 14:03 [RFC PATCH 1/3] linux-mirror: Add Fedora-specific tasks cel
2024-05-01 14:03 ` [RFC PATCH 2/3] get-distro-default-bridge.sh: Remove "http://" cel
2024-05-01 14:03 ` cel [this message]
2024-05-01 14:29 ` [RFC PATCH 1/3] linux-mirror: Add Fedora-specific tasks Chuck Lever
2024-05-01 19:12 ` Luis Chamberlain
2024-05-02 13:12 ` Chuck Lever III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240501140335.49067-3-cel@kernel.org \
--to=cel@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=kdevops@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.