Please answer yes or no. (install error)

Testing of eFa 4
Post Reply
User avatar
Daniel Beardsmore
Posts: 27
Joined: 06 Jan 2016 18:54
Location: Hertfordshire, UK
Contact:

Please answer yes or no. (install error)

Post by Daniel Beardsmore » 19 Aug 2019 15:52

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: 2827
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

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

Post by shawniverson » 19 Aug 2019 19:28

Repo is broken at the moment.
Version eFa 4.0.0 RC3 now available in testing repo. Come join us in advancing eFa!

User avatar
Daniel Beardsmore
Posts: 27
Joined: 06 Jan 2016 18:54
Location: Hertfordshire, UK
Contact:

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

Post by Daniel Beardsmore » 20 Aug 2019 09:28

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: 2827
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

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

Post by shawniverson » 20 Aug 2019 21:33

Updating issue list.
Version eFa 4.0.0 RC3 now available in testing repo. Come join us in advancing eFa!

Post Reply