From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0EEj-0004q0-8E for guix-patches@gnu.org; Mon, 17 Apr 2017 17:31:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0EEg-0006rh-1C for guix-patches@gnu.org; Mon, 17 Apr 2017 17:31:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0EEf-0006rS-Tw for guix-patches@gnu.org; Mon, 17 Apr 2017 17:31:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0EEf-0002Ty-Oe for guix-patches@gnu.org; Mon, 17 Apr 2017 17:31:01 -0400 Subject: bug#26548: [PATCH] install: Enable SSH in installation image. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0EEL-0004oH-1R for guix-patches@gnu.org; Mon, 17 Apr 2017 17:30:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0EEH-0006iO-Gb for guix-patches@gnu.org; Mon, 17 Apr 2017 17:30:40 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41717) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0EEH-0006iK-66 for guix-patches@gnu.org; Mon, 17 Apr 2017 17:30:37 -0400 From: Marius Bakke Date: Mon, 17 Apr 2017 23:30:30 +0200 Message-Id: <20170417213030.1489-1-mbakke@fastmail.com> 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: 26548@debbugs.gnu.org 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-SERVICE and LSH-SERVICE. --- gnu/system/install.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/system/install.scm b/gnu/system/install.scm index 191ccf168..95904f151 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm @@ -24,7 +24,9 @@ #:use-module (guix store) #:use-module (guix monads) #:use-module ((guix store) #:select (%store-prefix)) + #:use-module (gnu services networking) #:use-module (gnu services shepherd) + #:use-module (gnu services ssh) #:use-module (gnu packages admin) #:use-module (gnu packages bash) #:use-module (gnu packages bootloaders) @@ -262,6 +264,17 @@ You have been warned. Thanks for being so brave. ;; To facilitate copy/paste. (gpm-service) + ;; Add a DHCP client for networking. + (dhcp-client-service) + + ;; Add an SSH server to facilitate remote installs. + (lsh-service #:port-number 22 + #:root-login? #t + #:password-authentication? #t + ;; The root account is passwordless, so make sure + ;; a password is set before allowing logins. + #:allow-empty-passwords? #f) + ;; Since this is running on a USB stick with a unionfs as the root ;; file system, use an appropriate cache configuration. (nscd-service (nscd-configuration -- 2.12.2