[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/21: WIP: gnu: services: Add `%hurd-bare-metal-service'.
From: |
guix-commits |
Subject: |
18/21: WIP: gnu: services: Add `%hurd-bare-metal-service'. |
Date: |
Thu, 7 May 2020 12:31:13 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 8c8313d709674ede5885890a6742baf77bb0afa0
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Thu Apr 30 15:40:07 2020 +0200
WIP: gnu: services: Add `%hurd-bare-metal-service'.
* gnu/services.scm (%hurd-system-activation): New procedure.
(%hurd-bare-metal-service): New variable.
---
gnu/services.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/services.scm b/gnu/services.scm
index f161635..3309147 100644
--- a/gnu/services.scm
+++ b/gnu/services.scm
@@ -94,6 +94,7 @@
activation-service-type
activation-service->script
%linux-bare-metal-service
+ %hurd-bare-metal-service
special-files-service-type
extra-special-file
etc-service-type
@@ -631,6 +632,26 @@ ACTIVATION-SCRIPT-TYPE."
activation-service-type
%linux-kernel-activation))
+(define %hurd-system-activation
+ ;; Activation of the Hurd system.
+ #~(begin
+ ;; Tell the kernel to use our 'modprobe' command.
+ (display "Zee Passive Hurd\n")
+ (with-output-to-file "/tmp/before"
+ (lambda _ (display "hallo\n")))
+ (sleep 2)
+ (unless (file-exists? "/hurd")
+ (symlink "/hurd" (string-append #+hurd "/hurd")))
+ (with-output-to-file "/tmp/after"
+ (lambda _ (display "hallo\n")))
+ (display "Zee Active Hurd\n")))
+
+(define %hurd-bare-metal-service
+ ;; The service that does things that are needed on the "bare metal", but not
+ ;; necessary or impossible in a container.
+ (simple-service 'hurd-bare-metal
+ activation-service-type
+ %hurd-system-activation))
(define special-files-service-type
;; Service to install "special files" such as /bin/sh and /usr/bin/env.
- 03/21: system: vm: Fix for cross-build to the Hurd., (continued)
- 03/21: system: vm: Fix for cross-build to the Hurd., guix-commits, 2020/05/07
- 05/21: system: hurd: Add hurd-default-essential-services., guix-commits, 2020/05/07
- 10/21: system: examples: Add bare-hurd.tmpl., guix-commits, 2020/05/07
- 16/21: services: Add `hurd-getty-service-type'., guix-commits, 2020/05/07
- 17/21: HACK services: hurd: Add dummy `loopback'., guix-commits, 2020/05/07
- 11/21: services: hurd: Add `hurd-etc-sevcice'., guix-commits, 2020/05/07
- 12/21: system: Add `hurd-activation'., guix-commits, 2020/05/07
- 13/21: services: hurd: Use activation-service, hurd-etc-service., guix-commits, 2020/05/07
- 14/21: gnu: hurd: Create minimal "runsystem" script to invoke "rc"., guix-commits, 2020/05/07
- 15/21: services: Add `hurd-console-service-type'., guix-commits, 2020/05/07
- 18/21: WIP: gnu: services: Add `%hurd-bare-metal-service'.,
guix-commits <=
- 20/21: DRAFT: system: vm: Activate the Hurd., guix-commits, 2020/05/07
- 19/21: DRAFT: system: hurd: Populate services., guix-commits, 2020/05/07
- 21/21: gnu: guix: Update to 9a3ff0f684., guix-commits, 2020/05/07