On Wednesday 09 December 2009 18:46:11 Alan Mackenzie wrote: > > The supported method is to ssh into the "LiveCD" environment then > > chroot from that shell. It's hard to imagine a scenario where you would > > have more than one user doing that at the same time, so why run sshd in > > the chroot at all? > > If you run sshd in the bare installation (as suggested), the ssh client > has to update his ~/.ssh/known_hosts every time the system is booted > (what? There are people who only boot it once before getting Gentoo > completely installed? ;-). When sshd'ing from within the chrooted > environment, the ssh client has to add an entry to known_hosts just once, > and this entry will persist even when the embryonic gentoo has been fully > installed and configured. > > More to the point, though, is that the manual doesn't explicitly state > that sshd must be started from outside the chroot. It sort of implies > it, but doesn't emphasise it. Reading the manual, it was clear to me > that it didn't matter (turns out I was wrong). Also, people are going to > be running sshd on their own initiative, and it seems perverse knowingly > to leave a hindrance on one of the two ways they'll choose to do it. > > This situation cost me around 10 hours of frustration. Looks like I'll > not be the last victim.
All I can add is that if I were the maintainer, I wouldn't support what you are asking either. Installation is supposed to be an atomic operation - it starts then continues till it ends. It either fully completes or is considered to not have happened, meaning that persistence is diametrically opposed to what an install is. It's analogous to a compile - terminating compilation at some arbitrary point then picking up from where it ended at some later point is just not supported. Possible yes, but not supported by default. But it's easy to get what you want: take what is there, modify it and create a fork. You become the maintainer of the fork and can accept or decline suggestions as you see fit. -- alan dot mckinnon at gmail dot com