]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-20-NFS: remove stale pid file
authorHarald Hoyer <harald@redhat.com>
Fri, 19 Aug 2016 13:33:59 +0000 (15:33 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 19 Aug 2016 13:33:59 +0000 (15:33 +0200)
test/TEST-20-NFS/dhcpd.conf
test/TEST-20-NFS/server-init.sh
test/TEST-20-NFS/test.sh

index a4f7fc18cd971364feb0f82fe93ef96bd20cbce6..4ba730191b195920bff2d99c258017e7a554cd22 100644 (file)
@@ -3,175 +3,175 @@ ddns-update-style none;
 use-host-decl-names true;
 
 subnet 192.168.50.0 netmask 255.255.255.0 {
-       option subnet-mask      255.255.255.0;
-       option routers          192.168.50.1;
-       next-server             192.168.50.1;
-       server-identifier       192.168.50.1;
-       option domain-name-servers 192.168.50.1;
-       option domain-search "example.com";
-       option domain-name "other.com";
-
-       # MAC numbering scheme:
-       # NFSv3: last octect starts at 0x00 and works up
-
-       group {
-               # NFSv3 root=dhcp or root={/dev/,}nfs, use server-id
-               option root-path "/nfs/client";
-
-               host nfs3-1 {
-                       hardware ethernet 52:54:00:12:34:00;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=dhcp or root={/dev/,}nfs, use given IP
-               option root-path "192.168.50.2:/nfs/client";
-
-               host nfs3-2 {
-                       hardware ethernet 52:54:00:12:34:01;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=dhcp, use protocol from root-path
-               option root-path "nfs:192.168.50.3:/nfs/client";
-
-               host nfs3-3 {
-                       hardware ethernet 52:54:00:12:34:02;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=dhcp, use protocol, options from root-path
-               option root-path "nfs:192.168.50.3:/nfs/client:wsize=4096";
-
-               host nfs3-4 {
-                       hardware ethernet 52:54:00:12:34:03;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=dhcp, nfsroot=/path and nfsroot=IP:/path testing
-
-               host nfs3-5 {
-                       hardware ethernet 52:54:00:12:34:04;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=dhcp, use path, comma-separated options
-               option root-path "/nfs/client,wsize=4096";
-
-               host nfs3-6 {
-                       hardware ethernet 52:54:00:12:34:05;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=dhcp, use IP, path, comma-separated options
-               option root-path "192.168.50.2:/nfs/client,wsize=4096";
-
-               host nfs3-7 {
-                       hardware ethernet 52:54:00:12:34:06;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=dhcp, use proto, IP, path, comma-separated options
-               option root-path "nfs:192.168.50.3:/nfs/client,wsize=4096";
-
-               host nfs3-8 {
-                       hardware ethernet 52:54:00:12:34:07;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       # MAC numbering scheme:
-       # NFSv4: last octect starts at 0x80 and works up
-
-       group {
-               # NFSv4 root={/dev/,}nfs4, use server-id
-               option root-path "/client";
-
-               host nfs4-1 {
-                       hardware ethernet 52:54:00:12:34:80;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv4 root={/dev/,}nfs4, use given IP
-               option root-path "192.168.50.2:/client";
-
-               host nfs4-2 {
-                       hardware ethernet 52:54:00:12:34:81;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv4 root=dhcp, use profocol from root-path
-               option root-path "nfs4:192.168.50.3:/client";
-
-               host nfs4-3 {
-                       hardware ethernet 52:54:00:12:34:82;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv4 root=dhcp, use profocol, options from root-path
-               option root-path "nfs4:192.168.50.3:/client:wsize=4096";
-
-               host nfs4-4 {
-                       hardware ethernet 52:54:00:12:34:83;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv3 root=nfs4, nfsroot=/path and nfsroot=IP:/path testing
-               host nfs4-5 {
-                       hardware ethernet 52:54:00:12:34:84;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv4 root={/dev/,}nfs4, use server-id, comma-separated opts
-               option root-path "/client,wsize=4096";
-
-               host nfs4-6 {
-                       hardware ethernet 52:54:00:12:34:85;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv4 root={/dev/,}nfs4, use given IP, comma-separated opts
-               option root-path "192.168.50.2:/client,wsize=4096";
-
-               host nfs4-7 {
-                       hardware ethernet 52:54:00:12:34:86;
-                       fixed-address 192.168.50.101;
-               }
-       }
-
-       group {
-               # NFSv4 root=dhcp, use comma-separated opts
-               option root-path "nfs4:192.168.50.3:/client,wsize=4096";
-
-               host nfs4-8 {
-                       hardware ethernet 52:54:00:12:34:87;
-                       fixed-address 192.168.50.101;
-               }
-       }
+option subnet-mask      255.255.255.0;
+option routers          192.168.50.1;
+next-server             192.168.50.1;
+server-identifier       192.168.50.1;
+option domain-name-servers 192.168.50.1;
+option domain-search "example.com";
+option domain-name "other.com";
+
+# MAC numbering scheme:
+# NFSv3: last octect starts at 0x00 and works up
+
+    group {
+        # NFSv3 root=dhcp or root={/dev/,}nfs, use server-id
+        option root-path "/nfs/client";
+
+        host nfs3-1 {
+            hardware ethernet 52:54:00:12:34:00;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=dhcp or root={/dev/,}nfs, use given IP
+                option root-path "192.168.50.2:/nfs/client";
+
+                host nfs3-2 {
+                        hardware ethernet 52:54:00:12:34:01;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=dhcp, use protocol from root-path
+                option root-path "nfs:192.168.50.3:/nfs/client";
+
+                host nfs3-3 {
+                        hardware ethernet 52:54:00:12:34:02;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=dhcp, use protocol, options from root-path
+                option root-path "nfs:192.168.50.3:/nfs/client:wsize=4096";
+
+                host nfs3-4 {
+                        hardware ethernet 52:54:00:12:34:03;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=dhcp, nfsroot=/path and nfsroot=IP:/path testing
+
+                host nfs3-5 {
+                        hardware ethernet 52:54:00:12:34:04;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=dhcp, use path, comma-separated options
+                option root-path "/nfs/client,wsize=4096";
+
+                host nfs3-6 {
+                        hardware ethernet 52:54:00:12:34:05;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=dhcp, use IP, path, comma-separated options
+                option root-path "192.168.50.2:/nfs/client,wsize=4096";
+
+                host nfs3-7 {
+                        hardware ethernet 52:54:00:12:34:06;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=dhcp, use proto, IP, path, comma-separated options
+                option root-path "nfs:192.168.50.3:/nfs/client,wsize=4096";
+
+                host nfs3-8 {
+                        hardware ethernet 52:54:00:12:34:07;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        # MAC numbering scheme:
+        # NFSv4: last octect starts at 0x80 and works up
+
+        group {
+                # NFSv4 root={/dev/,}nfs4, use server-id
+                option root-path "/client";
+
+                host nfs4-1 {
+                        hardware ethernet 52:54:00:12:34:80;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv4 root={/dev/,}nfs4, use given IP
+                option root-path "192.168.50.2:/client";
+
+                host nfs4-2 {
+                        hardware ethernet 52:54:00:12:34:81;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv4 root=dhcp, use profocol from root-path
+                option root-path "nfs4:192.168.50.3:/client";
+
+                host nfs4-3 {
+                        hardware ethernet 52:54:00:12:34:82;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv4 root=dhcp, use profocol, options from root-path
+                option root-path "nfs4:192.168.50.3:/client:wsize=4096";
+
+                host nfs4-4 {
+                        hardware ethernet 52:54:00:12:34:83;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv3 root=nfs4, nfsroot=/path and nfsroot=IP:/path testing
+                host nfs4-5 {
+                        hardware ethernet 52:54:00:12:34:84;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv4 root={/dev/,}nfs4, use server-id, comma-separated opts
+                option root-path "/client,wsize=4096";
+
+                host nfs4-6 {
+                        hardware ethernet 52:54:00:12:34:85;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv4 root={/dev/,}nfs4, use given IP, comma-separated opts
+                option root-path "192.168.50.2:/client,wsize=4096";
+
+                host nfs4-7 {
+                        hardware ethernet 52:54:00:12:34:86;
+                        fixed-address 192.168.50.101;
+                }
+        }
+
+        group {
+                # NFSv4 root=dhcp, use comma-separated opts
+                option root-path "nfs4:192.168.50.3:/client,wsize=4096";
+
+                host nfs4-8 {
+                        hardware ethernet 52:54:00:12:34:87;
+                        fixed-address 192.168.50.101;
+                }
+        }
 
 }
index 5b6f42f2452e752b61a56a66f04eaa7964535a49..aa8af53002fb9282c70edff4d418ff9b371e96b1 100755 (executable)
@@ -46,10 +46,12 @@ rpc.idmapd
 echo > /dev/watchdog
 exportfs -r
 echo > /dev/watchdog
+mkdir -p /var/lib/dhcpd
 >/var/lib/dhcpd/dhcpd.leases
 echo > /dev/watchdog
 chmod 777 /var/lib/dhcpd/dhcpd.leases
 echo > /dev/watchdog
+rm -f /var/run/dhcpd.pid
 dhcpd -d -cf /etc/dhcpd.conf -lf /var/lib/dhcpd/dhcpd.leases &
 echo "Serving NFS mounts"
 while :; do
index 981cd82170cb8825d6ceeeb0dc51550edd66a8b0..039fb61b8fb75c8eee7831a1ab19ca401d9eb7d6 100755 (executable)
@@ -237,7 +237,7 @@ test_setup() {
         inst_multiple sh ls shutdown poweroff stty cat ps ln ip \
             dmesg mkdir cp ping exportfs \
             modprobe rpc.nfsd rpc.mountd showmount tcpdump \
-            /etc/services sleep mount chmod
+            /etc/services sleep mount chmod rm
         for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
             [ -f ${_terminfodir}/l/linux ] && break
         done