Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add files via upload #93

wants to merge 1 commit into from

Conversation

ekhazen
Copy link

@ekhazen ekhazen commented Aug 15, 2022

Added new bfb-multi-install to scripts

@lsun100
Copy link
Collaborator

lsun100 commented Aug 16, 2022

Do we want to install this script automatically when installing the .rpm or .deb? If yes, more changes are needed.

  • man/bfb-multi-install.8
  • rshim.spec.in
  • rhel/rshim.spec.in
  • Makefile.am
    We could use "grep -r bfb-install *" to check how bfb-install is added.

Copy link

@dannf dannf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH, I'm not really sure what the purpose of this script is. I came across it while just looking at the open PRs for this project, and noticed a few issues while trying to understand what it does. As a maintainer for this package in Debian/Ubuntu, I'd be uncomfortable shipping this script (even if it were relicensed sufficiently) as it does some pretty heavy-handed configuration tasks. Perhaps it could be posted as an example somewhere?

LINUX_DISTRO="CentOS Linux"
export LINUX_DISTRO
fi
echo "Discovred OS - $LINUX_DISTRO"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo - s/Discovred/Discovered/


# ----Bridges configuration ----

# Verify OS distrobution type
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo s/distrobution/distribution/

EOF
}

options=`getopt -n bfb-multi-install-ubuntu -o b:p:h -l bfb:,password:,help -- "$@"`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should that be bfb-multi-install-ubuntu or just bfb-multi-install?

fi
# Verify if seetings not already set.
if (grep --include=\*.yaml -rnw /etc/netplan/20-tmfifo.yaml -e 'tmfifo_net0'); then
echo "Static IP already set, skipping to avoid brake current settings"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/brake/break/

else
echo create new /etc/netplan/20-tmfifo.yaml file
touch /etc/netplan/20-tmfifo.yaml
cat > /etc/netplan/20-tmfifo.yaml <<- EOF
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if that file already existed? You could be overwriting someone's config

#
# This software product is governed by the End User License Agreement
# provided with the software product.
#
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope we're not planning to add proprietary code into this otherwise open source package.

cat > /etc/sysconfig/network-scripts/ifcfg-br_tmfifo << EOF
DEVICE="br_tmfifo"
BOOTPROTO="static"
IPADDR="192.168.100.1"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we know this is an OK subnet to use? What if your default route used 192.168.100.1 as a gateway?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants