unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26548: [PATCH] install: Enable SSH in installation image.
@ 2017-04-17 21:30 Marius Bakke
  2017-04-17 21:54 ` Leo Famulari
  2017-04-18  8:43 ` Ludovic Courtès
  0 siblings, 2 replies; 16+ messages in thread
From: Marius Bakke @ 2017-04-17 21:30 UTC (permalink / raw)
  To: 26548

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

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-05-17 23:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-17 21:30 bug#26548: [PATCH] install: Enable SSH in installation image Marius Bakke
2017-04-17 21:54 ` Leo Famulari
2017-04-17 22:06   ` Marius Bakke
2017-04-17 22:19     ` ng0
2017-04-17 23:01       ` Marius Bakke
2017-04-18 11:06         ` ng0
2017-04-18  8:43 ` Ludovic Courtès
2017-04-18 11:09   ` ng0
2017-05-08 12:01   ` Marius Bakke
2017-05-10 20:28     ` Ludovic Courtès
2017-05-17 12:14       ` Marius Bakke
2017-05-17 12:15         ` bug#26548: [PATCH v2 1/2] services: openssh: Don't depend on networking Marius Bakke
2017-05-17 12:15           ` bug#26548: [PATCH v2 2/2] install: Enable SSH in installation image Marius Bakke
2017-05-17 21:36             ` Ludovic Courtès
2017-05-17 23:01               ` Marius Bakke
2017-05-17 21:29           ` bug#26548: [PATCH v2 1/2] services: openssh: Don't depend on networking Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).