Forgot "reply all" again. Sorry, Thomas, BTW, a previous message I've (re)sent (6 hours ago) has not make it to the list yet.
On 01/01/2019 15:57, Thomas Seeling wrote: > Hallo, > >>> For the "rm" instructions, I'd suggest not adding -f, because usually, >> where is that happening? > > I have no actual example for rm where -f would be necessary, this was just > something coming to my mind when I wrote about forcing interactive mode with > cp or mv and remove -i switches there. I had 158-kernel hanging forever > because it was invoked from make and I could not give an answer to the > command. > > Professionally I'm responsible for automation of install and operations for a > company with some blue letters in its name so I tend to be overcautious with > scripts that potentially run headless, i.e. from cron, puppet, ansible etc. I > hate unexpected stuff like aliased cp/mv commands where -i is forced upon me. > Lots of my scripts contain "unalias mv" or "\mv" to be sure of how things are > working. > > As a sidenote: the BLFS install of openssh hangs for the same reason. On a > fresh machine where there are no keys yet the make install asks questions and > obviously no answer is possible: > > ... > 'INSTALL' -> '/usr/share/doc/openssh-7.7p1/INSTALL' > 'LICENCE' -> '/usr/share/doc/openssh-7.7p1/LICENCE' > 'OVERVIEW' -> '/usr/share/doc/openssh-7.7p1/OVERVIEW' > 'README' -> '/usr/share/doc/openssh-7.7p1/README' > 'README.dns' -> '/usr/share/doc/openssh-7.7p1/README.dns' > 'README.platform' -> '/usr/share/doc/openssh-7.7p1/README.platform' > 'README.privsep' -> '/usr/share/doc/openssh-7.7p1/README.privsep' > 'README.tun' -> '/usr/share/doc/openssh-7.7p1/README.tun' > Generating public/private rsa key pair. > Enter file in which to save the key (/root/.ssh/id_rsa): <---- answer expected > here > For openssh, I wait for activity (monitored with top for example) to stop, then I hit enter enter enter (accept the file in which to save key, then opt to have no pasword for the key and confirm). It is possible to use the same blind strategy if using the "ssh-copy-id" line, but this line has to be modified in the script anyway. In fact, when using jhalfs with BLFS, there is no way out of some scriptlet editing. Rewriting the book+jhalfs so that everything can be automated would be a big task... Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
