On 01/01/2019 08:57 AM, 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.
I see your point. I always build the kernel manually because I don't
pre-build the kernel configuration. This is a case where the manual
instructions and the automated instructions probably should be slightly
different.
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
You must be adding `ssh-keygen` to your script. I do note that we put
that into the configuration section of openssh, but the next command,
ssh-copy-id -i ~/.ssh/id_rsa.pub REMOTE_USERNAME@REMOTE_HOSTNAME
will always fail.
I think we need to add some role='nodump' tags to some entries in openssh.
-- Bruce
--
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