I glanced over the patch and it looks sane to me.
Also being able to kick off a sshd server after booting via pxe does
indeed seem like a very nice feature to have!
On 2016-05-05 23:03, Joerg Sonnenberger wrote:
Hello,
I recently faced the problem of trying to install SmartOS on a Skylake
system. This means no keyboard on the remote console due to missing
USB3
support. While hacking something together, I realized that the idea is
useful enough for remote emergency maintainance as well, i.e. when a
machine in the office has issues like a broken firewall config and all
the technical assistanec you have at hand boils down to "Select the
second item on the GRUB boot prompt". The patch adds a boot command
line
option "run_sshd=true". If it is set, the following happens:
- all interfaces are configured automatically with DHCP
- ssh-keygen creates a set of SSH keys, the fingerprints are shown on
the console
- the root password is replaced with root_shadow (if present)
- sshd is started
The final three steps are skipped if sshd is already running. This is
useful for installation as it allows just starting the script again
from
ssh. It is easier than using the answer file when dealing with a fresh
installation on a new server, as you often won't know the correct
answers in advance.
I have not added anything advanced like providing authorized_keys via
separate file, the primary goal for me is to have something at hand
that
works out of the box without customizing the ISO image. It is certainly
possible to extend this somewhat as a second step, if deemed useful.
Joerg
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com