[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/42: DRAFT system: examples: Add bare-hurd.tmpl.
From: |
guix-commits |
Subject: |
42/42: DRAFT system: examples: Add bare-hurd.tmpl. |
Date: |
Sat, 25 Apr 2020 13:45:11 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit e460289b0b4fbf8be702f313de1381d08f44fefb
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sat Apr 25 12:45:46 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.sm
to
./pre-inst-env guix system build --target=i586-pc-gnu --no-bootloader
--verbosity=1 gnu/system/examples/bare-hurd.tmpl
./pre-inst-env guix system vm --target=i586-pc-gnu --no-bootloader
--verbosity=1 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.
---
Makefile.am | 1 +
gnu/system/examples/bare-hurd.tmpl | 29 +++++++++++++++++++++++++++++
gnu/system/hurd.scm | 4 +++-
3 files changed, 33 insertions(+), 1 deletion(-)
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..263ad53
--- /dev/null
+++ b/gnu/system/examples/bare-hurd.tmpl
@@ -0,0 +1,29 @@
+;; -*-scheme-*-
+
+;; This is an operating system configuration template
+;; for a "bare bones" setup, with no X11 display server.
+
+(use-modules (gnu) (gnu system hurd))
+(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")))
+ (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 6178a3b..9b93620 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -148,7 +148,9 @@ menuentry \"GNU\" {
(bootloader hurd-grub-minimal-bootloader)
(target "/dev/vda")))
(kernel hurd)
- (initrd-modules '())
+ (firmware '())
+ (initrd (lambda _ '()))
+ (initrd-modules (lambda _ '()))
(file-systems '())
(swap-devices '())
(timezone "GNUrope")
- 41/42: system: hurd: Add hurd-grub-minimal-bootloader., (continued)
- 41/42: system: hurd: Add hurd-grub-minimal-bootloader., guix-commits, 2020/04/25
- 16/42: gnu: Add libtirpc/hurd., guix-commits, 2020/04/25
- 34/42: services: hurd: Move hurd-etc-sevcices., guix-commits, 2020/04/25
- 36/42: services: hurd: Move hurd-default-essential-services., guix-commits, 2020/04/25
- 39/42: services: hurd: Use cons as extend method., guix-commits, 2020/04/25
- 38/42: services: hurd: Use hurd-file-systems-service., guix-commits, 2020/04/25
- 32/42: system: hurd: Add guix., guix-commits, 2020/04/25
- 35/42: services: Add hurd-file-systems-service-type., guix-commits, 2020/04/25
- 40/42: system: hurd: Add hurd-grub-configuration-file., guix-commits, 2020/04/25
- 37/42: system: hurd: Export system variables., guix-commits, 2020/04/25
- 42/42: DRAFT system: examples: Add bare-hurd.tmpl.,
guix-commits <=