aboutsummaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-06-14 23:48:01 +0200
committerLudovic Courtès <ludo@gnu.org>2023-06-14 23:48:01 +0200
commit26602f4063a6e0c626e8deb3423166bcd0abeb90 (patch)
tree2787872536705e7d25aa44ddcb00e9eb9d9e6344 /gnu/services
parente487bd9ef5065951e412afd095c0aa62940d9f48 (diff)
downloadguix-26602f4063a6e0c626e8deb3423166bcd0abeb90.tar
guix-26602f4063a6e0c626e8deb3423166bcd0abeb90.tar.gz
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/services')
-rw-r--r--gnu/services/base.scm6
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?