Page 1 of 1

Please answer yes or no. (install error)

Posted: 19 Aug 2019 15:52
by Daniel Beardsmore
Couple of oddities with this command on a fresh CentOS 7 Minimal install:

Code: Select all

curl -sSL https://install.efa-project.org | bash
1) the installation fails unceremoniously with:

ERROR: eFa4 failed to install

From /var/log/eFa/build.log it became apparent that gpgcheck must be set to 0 in /etc/yum.conf due to the main eFa package not being signed.

2) the eFa installation process fails with an infinite loop of "Please answer yes or no.”

The actual output is:

<timestamp> - Installing eFa packages
<timestamp> - eFa 4 installed
<timestamp> - ============ EFA4 BUILD SCRIPT FINISHED ============
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
(repeat forever)

The fault is due to the reboot prompt not being permitted to receive input.

Re: Please answer yes or no. (install error)

Posted: 19 Aug 2019 19:28
by shawniverson
Repo is broken at the moment.

Re: Please answer yes or no. (install error)

Posted: 20 Aug 2019 09:28
by Daniel Beardsmore
I don’t think that it is the repo. The line that fails is this:

Code: Select all

read -p "Do you wish to reboot the system now?" yn
Notice how this message does not even appear at all. At a guess, when bash is fed its script on standard input via cURL, the read command cannot collect any input and thus fails to function. For example, this invocation does not show the prompt or wait for input:

Code: Select all

echo Fred | read -p Jim
This appears to be what happens if you pipe curl into bash and then call read.

Because the read command is inside a deliberate infinite loop, if read fails for any reason, the script shows endless errors.

The workaround for now would be to download the script and execute it in separate steps.

[Edit:
Apparently this is a way to do it:

Code: Select all

read -p "Do you wish to reboot the system now?" yn < /dev/tty
Now it will read from the keyboard and it will show a prompt.]

Re: Please answer yes or no. (install error)

Posted: 20 Aug 2019 21:33
by shawniverson
Updating issue list.