File: udevsettle

package info (click to toggle)
dracut 109-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,592 kB
  • sloc: sh: 24,498; ansic: 5,234; makefile: 346; perl: 186; python: 48; javascript: 19
file content (22 lines) | stat: -rw-r--r-- 833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Thomas Lange <lange@debian.org>
Date: Mon, 4 Aug 2025 13:10:56 +0200
Subject: udevsettle

In a KVM VM the network is not configured properly, it shows ens3
(instead of eth0), which is not in status up and no IP address.
---
 modules.d/80base/init.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules.d/80base/init.sh b/modules.d/80base/init.sh
index fcbd4bb..47a8655 100755
--- a/modules.d/80base/init.sh
+++ b/modules.d/80base/init.sh
@@ -164,6 +164,7 @@ udevadm control --reload > /dev/null 2>&1 || :
 # then the rest
 udevadm trigger --type=subsystems --action=add > /dev/null 2>&1
 udevadm trigger --type=devices --action=add > /dev/null 2>&1
+udevadm settle
 
 make_trace_mem "hook initqueue" '1:shortmem' '2+:mem' '3+:slab'
 getargs 'rd.break=initqueue' && emergency_shell -n initqueue "Break before initqueue"