From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7hMc-0006Dy-E5 for guix-patches@gnu.org; Mon, 08 May 2017 08:02:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7hMY-0004lP-HG for guix-patches@gnu.org; Mon, 08 May 2017 08:02:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7hMY-0004lL-Eb for guix-patches@gnu.org; Mon, 08 May 2017 08:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7hMY-0002P2-6e for guix-patches@gnu.org; Mon, 08 May 2017 08:02:02 -0400 Subject: bug#26548: [PATCH] install: Enable SSH in installation image. Resent-Message-ID: From: Marius Bakke In-Reply-To: <87inm2rtqa.fsf@gnu.org> References: <20170417213030.1489-1-mbakke@fastmail.com> <87inm2rtqa.fsf@gnu.org> Date: Mon, 08 May 2017 14:01:34 +0200 Message-ID: <8760hby2u9.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 26548@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hello! > > Marius Bakke skribis: > >> Hi Guix! This patch adds an SSH server to the installation image >> to aid remote installations as requested in >> https://lists.gnu.org/archive/html/help-guix/2017-01/msg00047.html >> >> lsh-service depends on networking, so I pulled in a DHCP client too. >> It increases the image size by about 29MiB. >> >> * gnu/system/install.scm (%installation-services): Add DHCP-CLIENT-SERVI= CE >> and LSH-SERVICE. > > [...] > >> + ;; Add a DHCP client for networking. >> + (dhcp-client-service) > > This is a problem: in the installation instructions, we tell people to > configure networking (possibly wireless) by hand, so we cannot expect > the DHCP client to work directly when the image is booted. > > Also, the installation instructions would need to be updated. > > However, what we could do, instead, is to add an SSH service that is off > by default (with (start? #f)) and does not depend on =E2=80=98networking= =E2=80=99. That > way, people would only need to type > > herd start ssh-daemon > > to get the thing up and running. WDYT? I've changed this patch to use OpenSSH, but can't really see how to override the openssh-shepherd-service to not depend on networking. Any hints? :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlkQXh8ACgkQoqBt8qM6 VPqnJQf9HTEPRASLXqiP7pnDSvYUB6WxD4y0e1qa2RAmm64lrLMlp8Drakiexyft Csrr6zhoiFSzYS2AgZQ85mR7SoKT0XmEr4Y9fk70h03yTCB3LTaOzuMO8FftSLHK nIoa5ACLS1rsKte3dhDZZVVai/VNfFGe7jnGd3AEIxihIg8Z7TAHu0uxloL0d6oo g95AzPJd33lCtuKXJEp4UZDvIbikdAo+30xuw463NMcRlv52g/LPwwzBtiNQU464 wlK3uCaPfJPEcMQ/513lMwAFS7hBaS5cdZ4QjkrbaBaG4I4nYn5InqLB7AH7o/m4 VtoQlvJA6Gs1OYFwsEhR+6K4cB1p+w== =xqVw -----END PGP SIGNATURE----- --=-=-=--