Include ethtool binary for debugging network configuration during network boot
authorMichael Prokop <mika@grml.org>
Fri, 17 Jul 2020 21:19:06 +0000 (23:19 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 17 Jul 2020 21:19:06 +0000 (23:19 +0200)
This should make it possible to apply specific network speed
settings or disable auto-negotiation.

Related to https://github.com/grml/grml/issues/153

backend/initramfs-tools/live.hook

index 1efa687..4039345 100755 (executable)
@@ -264,4 +264,9 @@ then
        manual_add_modules 8021q
 fi
 
+if [ -x /sbin/ethtool ]
+then
+       copy_exec /sbin/ethtool
+fi
+
 [ "${QUIET}" ] || echo .