-
Notifications
You must be signed in to change notification settings - Fork 33
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
Issue #116 Show banner when installing packages using yum
#119
Conversation
@praveenkumar livecd-creator seems to interpret the |
549c29f
to
b6432fb
Compare
@@ -1,6 +1,7 @@ | |||
BUILD_DIR=$(shell pwd)/build | |||
BIN_DIR=$(BUILD_DIR)/bin | |||
HANDLE_USER_DATA=$(shell base64 -w 0 scripts/handle-user-data) | |||
YUM_WRAPPER=$(shell base64 -w 0 scripts/yum-wrapper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/minishift/minishift-centos-iso/blob/master/Makefile#L40-L41 also need to be updated to pass it to kickstart file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, was wondering about this... wondered if livecd-creator created environment variables to be lowercase. awfully distracted at the moment... :-s
25506a2
to
53b6b01
Compare
yum
yum
@gbraad we need to make change to rhel template also because we want this for RHEL iso too right? |
I would like to, but can not make this call. As I remember developer tools do not follow the same support anyways. /cc: @LalatenduMohanty |
@gbraad @praveenkumar Agree, we need to change RHEL ISO also. |
scripts/yum-wrapper
Outdated
@@ -0,0 +1,11 @@ | |||
#!/bin/sh | |||
echo "Installing additional packages is not supported. Continue [y/n]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add more information around this e.g. Installing additional packages is not supported because the way the VM is created. The recommended method is to run applications as containers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope we can refer to a document or a wiki page where we describe the issue in more detail and provide possible alternatives.
I also believe it should be more prominent...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done... |
This includes #123, so if rebasing... that PR should go first |
scripts/yum-wrapper
Outdated
|
||
function banner() { | ||
hr | ||
echo -e "\n Installing additional packages is not supported. For more information, see:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/is/are/ . Some how missed it before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 'are'? 'Is' is referring to 'Installing'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually... it is referring to an action/verb and not the object. The action is "installing packages" which is a single thing.
Example:
- Eating is exhausting
- Eating the dish is exhausting
- Eating the dishes is exhausting
because 'is' refers to 'eating'.
# Show a warning banner when using yum to install software | ||
mv /usr/bin/yum /usr/bin/yum-unsupported | ||
# Place holder for base64 encode yum-wrapper script | ||
cat > yum-wrapper.base64 << EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could simplify this inclusion of encoded data even more, almost to a degree where you just do something like '${yum_wrapper}'. The current approach is quite fragile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less fragile than including the script and using escaping... but I can try to see if this suggestion works as expected, as it is not really a bash substitution that happens AFAIR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gbraad I guess you have fixed as per @hferentschik 's comment or you guys still discussing?
@gbraad Please fix the merge conflict. |
We need to confirm the link first, before able to merge. Don't want to do 2 pushes to get this done.
|
Right. First we need https://docs.openshift.org/latest/minishift/using/troubleshooting.html#install-additional-software-not-supported to be up i.e. minishift/minishift#1152 |
yum
yum
3baaaa0
to
61e7985
Compare
|
||
function banner() { | ||
hr | ||
echo -e "Installing additional packages on the root filesystem might exceed the allocated overlay size and lock the Minishift VM. Proceed with the installation at your own risk." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about the word overlay size
. Not sure what is supposed to mean. @thatdocslady @gbraad can you please explain it a little.
yum
yum
Test with RHEL ISO and worked as exected
|
@praveenkumar also verify, although late, if |
Deals with #116
unsupported
when trying to installyum
command-y
in the commandNote:
Banner might need to be more prominent...