[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/36: DRAFT system: examples: Add bare-hurd.tmpl.
From: |
guix-commits |
Subject: |
32/36: DRAFT system: examples: Add bare-hurd.tmpl. |
Date: |
Fri, 1 May 2020 11:54:04 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 8d01114f2279e6e3de82addfb79d2b39f84dd6a9
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Thu Apr 30 07:33:16 2020 +0200
DRAFT system: examples: Add bare-hurd.tmpl.
XXX This does not work yet. Start of migration from
./pre-inst-env guix build -f gnu/system/hurd.scm # This works!
to
./pre-inst-env guix system vm-image --target=i586-pc-gnu
gnu/system/examples/bare-hurd.tmpl
See also: <https://bugs.gnu.org/40839>; wip-disk-image.
* gnu/system/hurd.scm (hurd-grub-configuration-file): Add empty firmware,
initrd.
Use lambda to empty initrd-modules proprely.
* gnu/system/examples/bare-hurd.tmpl: New file.
* Makefile.am (EXAMPLES): Add it.
squash! DRAFT system: examples: Add bare-hurd.tmpl.
---
Makefile.am | 1 +
gnu/system/examples/bare-hurd.tmpl | 34 ++++++++++++++++++++++++++++++++++
gnu/system/hurd.scm | 26 ++++++++++++++++++++------
3 files changed, 55 insertions(+), 6 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index bb243fe..869f32b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -343,6 +343,7 @@ AUX_FILES = \
EXAMPLES = \
gnu/system/examples/asus-c201.tmpl \
gnu/system/examples/bare-bones.tmpl \
+ gnu/system/examples/bare-hurd.tmpl \
gnu/system/examples/beaglebone-black.tmpl \
gnu/system/examples/desktop.tmpl \
gnu/system/examples/lightweight-desktop.tmpl \
diff --git a/gnu/system/examples/bare-hurd.tmpl
b/gnu/system/examples/bare-hurd.tmpl
new file mode 100644
index 0000000..aabdd61
--- /dev/null
+++ b/gnu/system/examples/bare-hurd.tmpl
@@ -0,0 +1,34 @@
+;; -*-scheme-*-
+
+;; This is an operating system configuration template
+;; for a "bare bones" setup, with no X11 display server.
+
+(use-modules (gnu) (gnu system hurd) (guix utils))
+(use-service-modules hurd ssh)
+(use-package-modules ssh)
+
+(define %hurd-os
+ (operating-system
+ (inherit %hurd-default-operating-system)
+ (bootloader (bootloader-configuration
+ (bootloader hurd-grub-minimal-bootloader)
+ (target "/dev/sdX")))
+ (file-systems (cons (file-system
+ (device (file-system-label "my-root"))
+ (mount-point "/")
+ (type "ext2"))
+ %base-file-systems))
+ (host-name "guixygnu")
+ (timezone "GNUrope")
+ (packages %base-packages/hurd)
+ (services (cons (service openssh-service-type
+ (openssh-configuration
+ (use-pam? #f)
+ (openssh openssh)
+ (port-number 2222)
+ (permit-root-login #t)
+ (allow-empty-passwords? #t)
+ (password-authentication? #t)))
+ %base-services/hurd))))
+
+%hurd-os
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index fb6983a..e7fcdbd 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -142,15 +142,30 @@ menuentry \"GNU\" {
(define %hurd-default-operating-system
(operating-system
- (host-name "guixygnu")
+ (kernel hurd)
+ ;; (kernel-loadable-modules '())
+ (kernel-arguments '())
(bootloader (bootloader-configuration
(bootloader hurd-grub-minimal-bootloader)
(target "/dev/vda")))
- (kernel hurd)
- (initrd-modules '())
+ (label (lambda _ "label"))
+ (initrd (lambda _ '()))
+ (initrd-modules (lambda _ '()))
+ (firmware '())
+ (host-name "guixygnu")
+ ;; (hosts-file #F)
+ ;; (mapped-devices '())
(file-systems '())
- (swap-devices '())
+ ;; (swap-devices '())
+ (users '())
+ ;(groups '())
+ (skeletons '())
+ ;; (issue %default-issue)
+ (packages %base-packages/hurd)
(timezone "GNUrope")
+ ;; (locale "en_US.utf8")
+ (locale-definitions '())
+ ;; (locale-libcs '())
(name-service-switch #f)
(essential-services (hurd-default-essential-services
this-operating-system))
(services (cons (service openssh-service-type
@@ -162,10 +177,9 @@ menuentry \"GNU\" {
(allow-empty-passwords? #t)
(password-authentication? #t)))
%base-services/hurd))
- (packages %base-packages/hurd)
(pam-services '())
(setuid-programs '())
- (users '())))
+ (sudoers-file #f)))
(define (input->packages input)
"Return the list of packages in INPUT."
- 11/36: DRAFT system: hurd: Add the Shepherd., (continued)
- 11/36: DRAFT system: hurd: Add the Shepherd., guix-commits, 2020/05/01
- 18/36: system: hurd: Add guix., guix-commits, 2020/05/01
- 21/36: services: Add hurd-file-systems-service-type., guix-commits, 2020/05/01
- 22/36: services: hurd: Move hurd-default-essential-services., guix-commits, 2020/05/01
- 20/36: services: hurd: Move hurd-etc-sevcices., guix-commits, 2020/05/01
- 25/36: system: hurd: Add hurd-grub-configuration-file., guix-commits, 2020/05/01
- 36/36: HACK Don't fail on running host's localedef., guix-commits, 2020/05/01
- 28/36: system: vm: Add defaults for the Hurd., guix-commits, 2020/05/01
- 29/36: gnu: glibc/hurd-headers: Cross-build fix for the Hurd., guix-commits, 2020/05/01
- 34/36: WIP: gnu: services: Add %hurd-bare-metal-service., guix-commits, 2020/05/01
- 32/36: DRAFT system: examples: Add bare-hurd.tmpl.,
guix-commits <=
- 35/36: HACK system: vm: Add Hurd specifics., guix-commits, 2020/05/01
- 19/36: system: hurd: Add the guix service., guix-commits, 2020/05/01
- 26/36: system: hurd: Add hurd-grub-minimal-bootloader., guix-commits, 2020/05/01
- 27/36: system: Add hurd-operating-system-directory-base-entries., guix-commits, 2020/05/01
- 31/36: gnu: hurd: Switch system in RC., guix-commits, 2020/05/01
- 30/36: gnu: hurd: Cross-build hack: Set target i586-pc-gnu if unset., guix-commits, 2020/05/01
- 33/36: DRAFT: gnu: services: Use xprogram-file., guix-commits, 2020/05/01