Fix predictable network interface naming
In current systemd, this has been moved to systemd-network, which we're not using yet. So revive the old udev rules from systemd 203.
This commit is contained in:
@@ -83,8 +83,8 @@ let
|
||||
grep -l '\(RUN+\|IMPORT{program}\)="\(/usr\)\?/s\?bin' $i/*/udev/rules.d/* || true
|
||||
done
|
||||
|
||||
${optionalString (!config.networking.usePredictableInterfaceNames) ''
|
||||
ln -s /dev/null $out/80-net-name-slot.rules
|
||||
${optionalString config.networking.usePredictableInterfaceNames ''
|
||||
cp ${./80-net-name-slot.rules} $out/80-net-name-slot.rules
|
||||
''}
|
||||
|
||||
# If auto-configuration is disabled, then remove
|
||||
|
||||
Reference in New Issue
Block a user