diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-06-14 23:48:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-06-14 23:48:01 +0200 |
commit | 26602f4063a6e0c626e8deb3423166bcd0abeb90 (patch) | |
tree | 2787872536705e7d25aa44ddcb00e9eb9d9e6344 /gnu | |
parent | e487bd9ef5065951e412afd095c0aa62940d9f48 (diff) |
services: static-netwoking: Wait for devices to show up.
Fixes <https://issues.guix.gnu.org/63516>.
* gnu/services/base.scm (network-set-up/linux): Add call to
'wait-for-link'.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services/base.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm index c5b06b57e8..bbc2ac2c79 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -2799,6 +2799,12 @@ to CONFIG." #$@(map (lambda (address) #~(begin + ;; Before going any further, wait for the + ;; device to show up. + (wait-for-link + #$(network-address-device address) + #:blocking? #f) + (addr-add #$(network-address-device address) #$(network-address-value address) #:ipv6? |