Please answer yes or no. (install error)

Bugs in eFa 4
Post Reply
User avatar
Daniel Beardsmore
Posts: 28
Joined: 06 Jan 2016 18:54
Location: Hertfordshire, UK
Contact:

Please answer yes or no. (install error)

Post 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.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson »

Repo is broken at the moment.
User avatar
Daniel Beardsmore
Posts: 28
Joined: 06 Jan 2016 18:54
Location: Hertfordshire, UK
Contact:

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

Post 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.]
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson »

Updating issue list.
Post Reply