unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: SergioBG BG <sergiobgar@gmail.com>
Cc: 40682@debbugs.gnu.org
Subject: bug#40682: frozen installer in WiFi section -guix 1.1.0
Date: Sun, 19 Apr 2020 01:30:47 +0200	[thread overview]
Message-ID: <87o8ro4biw.fsf@gnu.org> (raw)
In-Reply-To: <CAGeSOFhM858F8vBRTO1tFHPyTQCRjBN-cmvtUExT-mJ+H7oNVw@mail.gmail.com> (SergioBG BG's message of "Sat, 18 Apr 2020 10:20:40 +0200")

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

Hi,

SergioBG BG <sergiobgar@gmail.com> skribis:

> Here the screenshot of Frozen.

Thanks.  Looking at the screenshot, it would seem that the installer is
stuck somewhere in ‘connman-connect-with-auth’, but it’s hard to tell
why/where.

I was able to reproduce it in ‘guix system vm’ with the patch below.

Cc: Mathieu in case they have an idea…

To be continued…

Thanks,
Ludo’.

PS: Nyacc contains libdbus bindings as an example of its FFI tooling,
    perhaps we should give it a try and use it here.  It could be more
    robust than piping through ‘connmanctl’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 2643 bytes --]

diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 0965c4d237..826f6d356d 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -322,6 +322,52 @@ the user's target storage device rather than on the RAM disk."
     "Load the @code{uvesafb} kernel module with the right options.")
    (default-value #t)))
 
+(define (simulated-wifi-shepherd-services hostapd)
+  (define config
+    (plain-file "hostapd.conf" "\
+interface=wlan1
+ssid=Test Net
+channel=1\n"))
+
+  (list (shepherd-service
+         (provision '(hostapd))
+         (requirement '(mac-sim-module unblocked-wifi))
+         (start #~(make-forkexec-constructor
+                   (list #$(file-append hostapd "/sbin/hostapd")
+                         #$config)
+                   #:log-file "/var/log/hostapd.log"))
+         (stop #~(make-kill-destructor)))
+        (shepherd-service
+         (provision '(unblocked-wifi))
+         (requirement '(mac-sim-module))
+         (start #~(lambda _
+                    (invoke #$(file-append util-linux "/sbin/rfkill")
+                            "unblock" "0")
+                    (invoke #$(file-append util-linux "/sbin/rfkill")
+                            "unblock" "1")))
+         (one-shot? #t))
+        (shepherd-service
+         (provision '(mac-sim-module))
+         (requirement '(term-tty3))
+         (modules '((guix build utils)))
+         (start #~(lambda _
+                    ;; XXX: We can't use 'load-linux-module*' here because it
+                    ;; expects a flat module directory.
+                    (setenv "LINUX_MODULE_DIRECTORY"
+                            "/run/booted-system/kernel/lib/modules")
+                    (invoke #$(file-append kmod "/bin/modprobe")
+                            "mac80211_hwsim")))
+         (one-shot? #t))))
+
+(define simulated-wifi-service-type
+  (service-type
+   (name 'simulated-wifi)
+   (extensions
+    (list (service-extension shepherd-root-service-type
+                             simulated-wifi-shepherd-services)))
+   (default-value hostapd)
+   (description "Run hostapd to simulate WiFi connectivity.")))
+
 (define %installation-services
   ;; List of services of the installation system.
   (let ((motd (plain-file "motd" "
@@ -366,6 +412,8 @@ Access documentation at any time by pressing Alt-F2.\x1b[0m
           ;; The usual services.
           (syslog-service)
 
+          (service simulated-wifi-service-type)
+
           ;; The build daemon.  Register the default substitute server key(s)
           ;; as trusted to allow the installation process to use substitutes by
           ;; default.

  parent reply	other threads:[~2020-04-18 23:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17 14:34 bug#40682: frozen installer in WiFi section -guix 1.1.0 SergioBG BG
2020-04-17 20:51 ` Ludovic Courtès
     [not found]   ` <CAGeSOFhM858F8vBRTO1tFHPyTQCRjBN-cmvtUExT-mJ+H7oNVw@mail.gmail.com>
2020-04-18 23:30     ` Ludovic Courtès [this message]
2020-04-19  9:57       ` Mathieu Othacehe
2020-04-19 22:26         ` Ludovic Courtès
2020-04-20 17:20           ` Mathieu Othacehe
2020-04-20 19:40             ` SergioBG BG
2020-04-21 14:50             ` Ludovic Courtès
2020-05-11 18:08 ` bug#40682: Installer hangs while connecting to WiFi network Jacek Podkanski via web
2020-05-11 18:49 ` bug#40682: frozen installer in WiFi section -guix 1.1.0 Leo Famulari
2020-05-12  8:55   ` Mathieu Othacehe
2022-10-08  3:07     ` bug#40682: Installer hangs while connecting to WiFi network Maxim Cournoyer
2022-11-03  9:43       ` zimoun
2022-11-03 11:22         ` Mathieu Othacehe
2020-05-12  9:03 ` Ricardo Wurmus via web

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8ro4biw.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=40682@debbugs.gnu.org \
    --cc=sergiobgar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).