[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
31/36: gnu: hurd: Switch system in RC.
From: |
guix-commits |
Subject: |
31/36: gnu: hurd: Switch system in RC. |
Date: |
Fri, 1 May 2020 11:54:03 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 593ea34cbdd65fe8ccafa0b338b09f3742afb0f7
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Thu Apr 30 18:18:49 2020 +0200
gnu: hurd: Switch system in RC.
* gnu/packages/hurd.scm (hurd-rc-script): Switch system.
---
gnu/packages/hurd.scm | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index b82d12a..378547a 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -349,7 +349,22 @@ boot, since this cannot be done from GNU/Linux."
(apply invoke "settrans" "-c" node command))))
'#$translators)
- ;; Activate the system
+ ;; Setting current system
+ (unless (file-exists? "/run/current-system/profile")
+ (format #t "Setting current system...\n")
+ (mkdir-p "/run/current-system")
+ (let ((profiles (find-files "/gnu/store"
+ (lambda (name stat)
+ (and (string-suffix? "-profile" name)
+ (eq? 'directory (stat:type
stat))))
+ #:directories? #t)))
+ (when (> (length profiles) 1)
+ (format #t "Too many profiles found...choosing first!\n"))
+ (if (null? profiles)
+ (format #t "No profiles found...Good luck!\n")
+ (symlink (car profiles) "/run/current-system/profile"))))
+ ;; XXX Activate the system
+ (format #t "Activating system...\n")
(invoke "/run/current-system/profile/bin/sh" "/boot/activation")
;; Hand over to the Shepherd
(false-if-exception (delete-file "/var/run/shepherd/socket"))
- 25/36: system: hurd: Add hurd-grub-configuration-file., (continued)
- 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, 2020/05/01
- 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 <=
- 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