[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/49: hurd-boot: Support second boot.
From: |
guix-commits |
Subject: |
07/49: hurd-boot: Support second boot. |
Date: |
Sun, 10 Nov 2024 05:26:22 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 99f6d6653eebf32834306e89b785a5f5b5dd032d
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue May 30 18:08:38 2023 +0200
hurd-boot: Support second boot.
* gnu/build/hurd-boot.scm (boot-hurd-system): Check for stale shepherd
socket
and remove it. Be chattier about /hurd symlink replacement.
Change-Id: I5e528c131ebeadb7ebc9727336a0f9301af3e68e
---
gnu/build/hurd-boot.scm | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm
index daf4fb41ab..23ace25d4f 100644
--- a/gnu/build/hurd-boot.scm
+++ b/gnu/build/hurd-boot.scm
@@ -322,18 +322,29 @@ XXX TODO: use Linux xattr/setxattr to remove (settrans
in) /libexec/RUNSYSTEM
(let* ((args (command-line))
(system (find-long-option "gnu.system" args))
- (to-load (find-long-option "gnu.load" args)))
+ (to-load (find-long-option "gnu.load" args))
+ (profile (string-append system "/profile"))
+ (bin (string-append profile "/bin"))
+ (sbin (string-append profile "/bin")))
- (false-if-exception (delete-file "/hurd"))
- (let ((hurd/hurd (readlink* (string-append system "/profile/hurd"))))
- (symlink hurd/hurd "/hurd"))
+ (setenv "PATH" (string-append bin ":" sbin))
+
+ (when (file-exists? "/var/run/shepherd/socket")
+ (format #t "Removing stale shepherd socket...\n")
+ (delete-file "/var/run/shepherd/socket"))
(unless (file-exists? "/servers/startup")
(format #t "Creating essential device nodes...\n")
(make-hurd-device-nodes))
+ (let ((profile/hurd (readlink* (string-append profile "/hurd"))))
+ (when (file-exists? "/hurd")
+ (format #t "Removing stale /hurd link\n")
+ (delete-file "/hurd"))
+ (format #t "Linking /hurd from ~a...\n" profile/hurd)
+ (symlink profile/hurd "/hurd"))
+
(format #t "Setting-up essential translators...\n")
- (setenv "PATH" (string-append system "/profile/bin"))
(set-hurd-device-translators)
(format #t "Starting pager...\n")
- 10/49: installer: Remove unused (newt) imports., (continued)
- 10/49: installer: Remove unused (newt) imports., guix-commits, 2024/11/10
- 08/49: system: examples: Add devel-hurd.tmpl., guix-commits, 2024/11/10
- 09/49: maint: Add installer dependencies to the manifest., guix-commits, 2024/11/10
- 02/49: guix system: When installing the Hurd, create essential devices., guix-commits, 2024/11/10
- 03/49: bootloader: grub: Remove hardcoded partition number for the Hurd., guix-commits, 2024/11/10
- 37/49: gnu: openssl-3.0: Support the 64bit Hurd., guix-commits, 2024/11/10
- 14/49: installer: Use `%' for parameter %run-command-in-installer., guix-commits, 2024/11/10
- 18/49: installer: Support dry-run from Guile via store., guix-commits, 2024/11/10
- 16/49: installer: Add "Kernel" page to select the Hurd., guix-commits, 2024/11/10
- 20/49: gnu: gnumach: Update to v1.8+git20240714., guix-commits, 2024/11/10
- 07/49: hurd-boot: Support second boot.,
guix-commits <=
- 11/49: installer: Align comments., guix-commits, 2024/11/10
- 15/49: installer: Add dry-run?, guix-commits, 2024/11/10
- 35/49: gnu: libgcrypt: Use libgpg-error-1.50 for the 64bit Hurd., guix-commits, 2024/11/10
- 23/49: gnu: Add basic support for x86_64-pc-gnu target, aka 64bit Hurd., guix-commits, 2024/11/10
- 13/49: installer: Fix file-name typos., guix-commits, 2024/11/10
- 30/49: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/11/10
- 31/49: gnu: gcc-13, gcc-14: Support being used as parent for gcc-static., guix-commits, 2024/11/10
- 38/49: gnu: pciutils: Support the 64bit Hurd., guix-commits, 2024/11/10
- 21/49: gnu: hurd: Update to v0.9.git20240714., guix-commits, 2024/11/10
- 12/49: installer: Use "partitioning-page" consistently., guix-commits, 2024/11/10