Use the new net.ifnames kernel command line flag to disable persistent interface names
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
863c6f2490
commit
f7563698df
|
@ -83,10 +83,6 @@ let
|
||||||
grep -l '\(RUN+\|IMPORT{program}\)="\(/usr\)\?/s\?bin' $i/*/udev/rules.d/* || true
|
grep -l '\(RUN+\|IMPORT{program}\)="\(/usr\)\?/s\?bin' $i/*/udev/rules.d/* || true
|
||||||
done
|
done
|
||||||
|
|
||||||
${optionalString (!config.networking.usePredictableInterfaceNames) ''
|
|
||||||
ln -s /dev/null $out/80-net-name-slot.rules
|
|
||||||
''}
|
|
||||||
|
|
||||||
# If auto-configuration is disabled, then remove
|
# If auto-configuration is disabled, then remove
|
||||||
# udev's 80-drivers.rules file, which contains rules for
|
# udev's 80-drivers.rules file, which contains rules for
|
||||||
# automatically calling modprobe.
|
# automatically calling modprobe.
|
||||||
|
@ -222,6 +218,8 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.extraKernelParams = mkIf (! config.networking.usePredictableInterfaceNames) [ "net.ifnames=0" ];
|
||||||
|
|
||||||
system.requiredKernelConfig = with config.lib.kernelConfig; [
|
system.requiredKernelConfig = with config.lib.kernelConfig; [
|
||||||
(isEnabled "UNIX")
|
(isEnabled "UNIX")
|
||||||
(isYes "INOTIFY_USER")
|
(isYes "INOTIFY_USER")
|
||||||
|
|
Loading…
Reference in New Issue