unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators.
@ 2023-05-14 13:36 Josselin Poiret via Guix-patches via
  2023-05-14 14:16 ` Janneke Nieuwenhuizen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Josselin Poiret via Guix-patches via @ 2023-05-14 13:36 UTC (permalink / raw)
  To: 63501; +Cc: Josselin Poiret

From: Josselin Poiret <dev@jpoiret.xyz>

* gnu/build/hurd-boot.scm (boot-hurd-system): Symlink /hurd before setting up
translators.
---

Hi everyone,

This should fix the Hurd not booting.

Enjoy! (and now we also need to fix the native Hurd compilation problems, but
that's for another patch)

 gnu/build/hurd-boot.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm
index abcf0304c2..95c15907dd 100644
--- a/gnu/build/hurd-boot.scm
+++ b/gnu/build/hurd-boot.scm
@@ -280,14 +280,14 @@ (define* (boot-hurd-system #:key (on-error 'debug))
             (system  (find-long-option "gnu.system" args))
             (to-load (find-long-option "gnu.load" args)))
 
-       (format #t "Setting-up essential translators...\n")
-       (setenv "PATH" (string-append system "/profile/bin"))
-       (set-hurd-device-translators)
-
        (false-if-exception (delete-file "/hurd"))
        (let ((hurd/hurd (readlink* (string-append system "/profile/hurd"))))
          (symlink hurd/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")
        (unless (zero? (system* "/hurd/mach-defpager"))
          (format #t "FAILED...Good luck!\n"))

base-commit: eb7312401ea89e634f8d686db71bacda58b2755f
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators.
  2023-05-14 13:36 [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators Josselin Poiret via Guix-patches via
@ 2023-05-14 14:16 ` Janneke Nieuwenhuizen
  2023-05-16 12:53 ` Ludovic Courtès
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Janneke Nieuwenhuizen @ 2023-05-14 14:16 UTC (permalink / raw)
  To: Josselin Poiret; +Cc: 63501

Josselin Poiret via Guix-patches via writes:

Hi Josselin!

> * gnu/build/hurd-boot.scm (boot-hurd-system): Symlink /hurd before setting up
> translators.
> ---
> This should fix the Hurd not booting.
>
> Enjoy! (and now we also need to fix the native Hurd compilation problems, but
> that's for another patch)

Haven't reconfigured using this, but it works for me using

    ./pre-inst-env guix system image -t hurd-qcow2 gnu/system/examples/bare-hurd.tmpl

and

--8<---------------cut here---------------start------------->8---
$(guix build qemu | grep -Ev '(doc|static)$')/bin/qemu-system-i386      \
-m 4096                                                                 \
--device rtl8139,netdev=net0                                            \
--netdev user,id=net0,hostfwd=tcp:0.0.0.0:11022-:2222                   \
--snapshot                                                              \
--no-reboot                                                             \
--hda /gnu/store/nap53abhcsjqc2xg8dvbyy1vplb8kkzf-disk-image
--8<---------------cut here---------------end--------------->8---

after some waiting, I get:

--8<---------------cut here---------------start------------->8---
16:07:15 janneke@drakenpad:~/src/guix/master [env]
$ ssh childhurd1
Last login: Sun May 14 16:07:03 2023 from 10.0.2.2


  This is the GNU Hurd.  Welcome.

root@guixygnu ~# 
--8<---------------cut here---------------end--------------->8---

Well done, phew that was quite a puzzle!

> diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm
> index abcf0304c2..95c15907dd 100644
> --- a/gnu/build/hurd-boot.scm
> +++ b/gnu/build/hurd-boot.scm
> @@ -280,14 +280,14 @@ (define* (boot-hurd-system #:key (on-error 'debug))
>              (system  (find-long-option "gnu.system" args))
>              (to-load (find-long-option "gnu.load" args)))
>  
> -       (format #t "Setting-up essential translators...\n")
> -       (setenv "PATH" (string-append system "/profile/bin"))
> -       (set-hurd-device-translators)
> -
>         (false-if-exception (delete-file "/hurd"))
>         (let ((hurd/hurd (readlink* (string-append system "/profile/hurd"))))
>           (symlink hurd/hurd "/hurd"))
>  
> +       (format #t "Setting-up essential translators...\n")
> +       (setenv "PATH" (string-append system "/profile/bin"))
> +       (set-hurd-device-translators)
> +

So, LGTM!

Interesting how this seemed to work with earlier versions of the Hurd...

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators.
  2023-05-14 13:36 [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators Josselin Poiret via Guix-patches via
  2023-05-14 14:16 ` Janneke Nieuwenhuizen
@ 2023-05-16 12:53 ` Ludovic Courtès
  2023-05-16 17:08 ` Brian Cully via Guix-patches via
  2023-05-17 21:29 ` bug#63501: " Josselin Poiret via Guix-patches via
  3 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2023-05-16 12:53 UTC (permalink / raw)
  To: Josselin Poiret; +Cc: 63501

Hello!

Josselin Poiret <dev@jpoiret.xyz> skribis:

> From: Josselin Poiret <dev@jpoiret.xyz>
>
> * gnu/build/hurd-boot.scm (boot-hurd-system): Symlink /hurd before setting up
> translators.

Good catch!

Any idea when the regression was introduced?

Anyhow, LGTM.

Thanks for investigating!

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators.
  2023-05-14 13:36 [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators Josselin Poiret via Guix-patches via
  2023-05-14 14:16 ` Janneke Nieuwenhuizen
  2023-05-16 12:53 ` Ludovic Courtès
@ 2023-05-16 17:08 ` Brian Cully via Guix-patches via
  2023-05-17 21:29 ` bug#63501: " Josselin Poiret via Guix-patches via
  3 siblings, 0 replies; 5+ messages in thread
From: Brian Cully via Guix-patches via @ 2023-05-16 17:08 UTC (permalink / raw)
  To: Josselin Poiret; +Cc: 63501

This patch is working for me to get ‘hurd-vm-service-type’ working on master.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#63501: [PATCH] hurd-boot: Symlink /hurd before setting up translators.
  2023-05-14 13:36 [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators Josselin Poiret via Guix-patches via
                   ` (2 preceding siblings ...)
  2023-05-16 17:08 ` Brian Cully via Guix-patches via
@ 2023-05-17 21:29 ` Josselin Poiret via Guix-patches via
  3 siblings, 0 replies; 5+ messages in thread
From: Josselin Poiret via Guix-patches via @ 2023-05-17 21:29 UTC (permalink / raw)
  To: 63501-done

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

Hi,

Josselin Poiret <dev@jpoiret.xyz> writes:
> * gnu/build/hurd-boot.scm (boot-hurd-system): Symlink /hurd before setting up
> translators.

Pushed as e041801e615d9194505d30093a7fdc8ac1d4a929.

Best,
-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-17 21:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-14 13:36 [bug#63501] [PATCH] hurd-boot: Symlink /hurd before setting up translators Josselin Poiret via Guix-patches via
2023-05-14 14:16 ` Janneke Nieuwenhuizen
2023-05-16 12:53 ` Ludovic Courtès
2023-05-16 17:08 ` Brian Cully via Guix-patches via
2023-05-17 21:29 ` bug#63501: " Josselin Poiret via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).