File: 008_nfsroot_check.diff

package info (click to toggle)
lessdisks 0.5.3cvs.20040906-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,480 kB
  • ctags: 271
  • sloc: sh: 3,058; makefile: 92
file content (15 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -ur lessdisks-0.5.3cvs.20040906/mkinitrd/conf/install_scripts/70_dhcp patched-lessdisks-0.5.3cvs.20040906/mkinitrd/conf/install_scripts/70_dhcp
--- lessdisks-0.5.3cvs.20040906/mkinitrd/conf/install_scripts/70_dhcp	2004-06-17 11:30:03.000000000 -0700
+++ patched-lessdisks-0.5.3cvs.20040906/mkinitrd/conf/install_scripts/70_dhcp	2004-10-18 12:27:08.000000000 -0700
@@ -13,6 +13,11 @@
   . "$cmdline_opts"
 fi
 
+if [ "/dev/nfs" != "$rootdev" ]; then
+  echo "root not set to /dev/nfs, skipping dhcp request..."
+  exit 0
+fi
+
 case $autoconf_type in
   off|none) echo "not configuring ip address"
   exit 0 ;;