ensure af_packet module is loaded (if not built-in)
authorFrederic Crozat <fcrozat@suse.com>
Tue, 31 Jul 2012 13:15:13 +0000 (15:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 1 Aug 2012 12:40:43 +0000 (14:40 +0200)
test/TEST-20-NFS/server-init.sh
test/TEST-20-NFS/test.sh
test/TEST-40-NBD/server-init.sh
test/TEST-40-NBD/test.sh
test/TEST-50-MULTINIC/server-init.sh
test/TEST-50-MULTINIC/test.sh

index 58fdeee6b69d07b35a24f787e62dfa351c8d17e7..ac07fc20b88fa2fd71c68f1ab520421b075d5f43 100755 (executable)
@@ -15,6 +15,8 @@ ip addr add 192.168.50.2/24 dev eth0
 ip addr add 192.168.50.3/24 dev eth0
 ip link set eth0 up
 echo > /dev/watchdog
+modprobe af_packet
+echo > /dev/watchdog
 mount --bind /nfs/client /nfs/nfs3-5
 echo > /dev/watchdog
 mount --bind /nfs/client /nfs/ip/192.168.50.101
index d096cac964bcfc6acdaddd294668702f9060d089..8747791b15b3594638d804a584402500086af1fb 100755 (executable)
@@ -244,7 +244,7 @@ test_setup() {
        [ -f /etc/netconfig ] && dracut_install /etc/netconfig
        type -P dhcpd >/dev/null && dracut_install dhcpd
        [ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
-       instmods nfsd sunrpc ipv6 lockd
+       instmods nfsd sunrpc ipv6 lockd af_packet
        inst ./server-init.sh /sbin/init
        inst ./hosts /etc/hosts
        inst ./exports /etc/exports
index 8d2dd6dea4706dcc84a2c80fe1fd94dd12a076a8..5e8d56e87128c27d1000c72495fd59ec2ac190c6 100755 (executable)
@@ -11,6 +11,7 @@ ip addr add 127.0.0.1/8 dev lo
 ip link set lo up
 ip addr add 192.168.50.1/24 dev eth0
 ip link set eth0 up
+modprobe af_packet
 nbd-server 2000 /dev/sdb -C /dev/null
 nbd-server 2001 /dev/sdc -C /dev/null
 >/var/lib/dhcpd/dhcpd.leases
index 7fce9c0aaa84970c27a03d3d7ba05f3a47d103b0..b8fb04dd30d7f6bc806f85b21ac9d2cae03ae33f 100755 (executable)
@@ -292,6 +292,7 @@ make_server_root() {
            [ -f ${_terminfodir}/l/linux ] && break
        done
        dracut_install -o ${_terminfodir}/l/linux
+       instmods af_packet
        type -P dhcpd >/dev/null && dracut_install dhcpd
        [ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
        inst ./server-init.sh /sbin/init
index 43d7f401c85953ff63be645b7efe024c5d28d6ef..144f83c7df0daf4758bda4dfe2664379ee870d68 100755 (executable)
@@ -13,6 +13,8 @@ ip link set lo up
 ip addr add 192.168.50.1/24 dev eth0
 ip link set eth0 up
 >/dev/watchdog
+modprobe af_packet
+> /dev/watchdog
 modprobe sunrpc
 >/dev/watchdog
 mount -t rpc_pipefs sunrpc /var/lib/nfs/rpc_pipefs
index dc4aa6a6cdb12df3970290d9b621cc3c65d40006..3771a14b02da91c41d4fa066adc532218da801d8 100755 (executable)
@@ -166,7 +166,7 @@ test_setup() {
         [ -f /etc/netconfig ] && dracut_install /etc/netconfig
         type -P dhcpd >/dev/null && dracut_install dhcpd
         [ -x /usr/sbin/dhcpd3 ] && inst /usr/sbin/dhcpd3 /usr/sbin/dhcpd
-        instmods nfsd sunrpc ipv6 lockd
+        instmods nfsd sunrpc ipv6 lockd af_packet
         inst ./server-init.sh /sbin/init
         inst ./hosts /etc/hosts
         inst ./exports /etc/exports