mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 00:11:36 +01:00 
			
		
		
		
	Use `udevd` rules to create stable interface names. Link controllers should wait for `udevd` to settle down, otherwise link rename will fail (interface should not be UP). Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			497 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			497 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ACTION!="add", GOTO="net_name_slot_end"
 | |
| SUBSYSTEM!="net", GOTO="net_name_slot_end"
 | |
| NAME!="", GOTO="net_name_slot_end"
 | |
| 
 | |
| IMPORT{cmdline}="net.ifnames"
 | |
| ENV{net.ifnames}=="0", GOTO="net_name_slot_end"
 | |
| 
 | |
| NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
 | |
| NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
 | |
| NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"
 | |
| NAME=="", ENV{ID_NET_NAME_MAC}!="", NAME="$env{ID_NET_NAME_MAC}"
 | |
| 
 | |
| LABEL="net_name_slot_end"
 |