guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/22: HACK build.sh, 2GiB disk.


From: guix-commits
Subject: 03/22: HACK build.sh, 2GiB disk.
Date: Mon, 13 Apr 2020 09:20:46 -0400 (EDT)

janneke pushed a commit to branch wip-hurd-vm
in repository guix.

commit 6c1768ab094a2dfcd8b66aedff4ed81570577665
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Fri Apr 10 18:06:46 2020 +0200

    HACK build.sh, 2GiB disk.
---
 gnu/system/hurd.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index 28a88c1..c1807a7 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -136,6 +136,16 @@ if [ -f \"$GUIX_PROFILE/etc/profile\" ]; then
   . \"$GUIX_PROFILE/etc/profile\"
 fi\n"))
 
+  (define build.sh
+    (plain-file "build.sh"
+                "#! /bin/sh
+set -ex
+
+guix-daemon --build-users-group=guixbuild --disable-chroot --max-jobs=1 &
+guix archive --authorize < 
/run/current-system/profile/share/guix/ci.guix.gnu.org.pub
+guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)' --fallback 
--no-offload
+"))
+
   (define hurd-directives
     `((directory "/servers")
       ,@(map (lambda (server)
@@ -165,6 +175,7 @@ fi\n"))
               '(begin
                  (use-modules (ice-9 readline) (ice-9 colorized))
                  (activate-readline) (activate-colorized))))
+      ("/root/build.sh" -> ,build.sh)
       (directory "/run")
       (directory "/run/current-system")
       ("/run/current-system/profile" -> ,system-profile)
@@ -213,13 +224,15 @@ fi\n"))
                          ("passwd" ,passwd)
                          ("group" ,group)
                          ("etc-profile" ,etc-profile)
-                         ("shadow" ,shadow))
+                         ("shadow" ,shadow)
+                         ("build.sh" ,build.sh))
               #:copy-inputs? #t
               #:os system-profile
               #:bootcfg-drv grub.cfg
               #:bootloader grub-bootloader
               #:register-closures? #f
               #:device-nodes 'hurd
+              #:disk-image-size (* 2 (expt 2 30)) ;2GiB
               #:extra-directives hurd-directives))
 
 ;; Return this thunk so one can type "guix build -f gnu/system/hurd.scm".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]