bug-guix
[Top][All Lists]
Advanced

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

bug#35941: Newt installer failure when wifi name is #f


From: Pierre Neidhardt
Subject: bug#35941: Newt installer failure when wifi name is #f
Date: Tue, 28 May 2019 12:00:42 +0200

Mathieu Othacehe <address@hidden> writes:

> Hey Pierre,
>
> You can find the backtrace in /tmp/last-installer-error file.
>
> About the bug itself, it has been reported here:
> https://issues.guix.gnu.org/issue/35622
>
> Both patches seems fine to me,

As Danny pointed out, my connman patch might not work.

> but I'd like to understand why the regex
> fails. Could you run this command and report the result:
>
> --8<---------------cut here---------------start------------->8---
> for s in $(connmanctl services | cut -c 25- | grep wifi) ; do connmanctl 
> service $s ; done
> --8<---------------cut here---------------end--------------->8---

It doesn't know `connmanctl service` :/

Anyways, `connmanctl services | cut -c 25-` makes it clear.  This one
line is different:

--8<---------------cut here---------------start------------->8---
G wifi_d...
--8<---------------cut here---------------end--------------->8---

In full:

--8<---------------cut here---------------start------------->8---
# connmanctl services

boitealternative_2.4G wifi_d...
--8<---------------cut here---------------end--------------->8---

The "cut -c ..." is not what you want because connman does not truncate
the wifi name at column 25.

If all you want is the last string, maybe the following would work
better:

--8<---------------cut here---------------start------------->8---
for s in $(connmanctl services | awk '{print $NF}'); do ...
--8<---------------cut here---------------end--------------->8---

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature


reply via email to

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