/usr/share/initramfs-tools/hooks/vmxnet is in open-vm-tools-dkms 2:10.0.7-3227872-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/sh
# initramfs hook for vmxnet (open-vm-tools)
set -e
# initramfs-tools header
PREREQ=""
prereqs()
{
echo "${PREREQ}"
}
case "${1}" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
# vmxnet hook
# If pcnet32 is installed in the initrd, also install vmxnet. Together with the
# modprobe configuration, we can ensure that vmxnet is always preferred over
# pcnet32.
if find "${DESTDIR}"/lib/modules -name pcnet32.ko >/dev/null; then
manual_add_modules vmxnet
fi
|