ensure af_packet module is loaded (if not built-in)
parent
b9775297cd
commit
ec8974914f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue