bootdisk: installer-raid-functions (HEAD)

kloczek kloczek w pld.org.pl
Pią, 10 Sty 2003, 05:54:14 CET


Module name:	bootdisk
Changes by:	kloczek	03/01/10 05:54:11

Modified files:
	installer-raid-functions

Log message:
- remove using raidstart/mkraid and use only mdctl.

Index: installer-raid-functions
===================================================================
RCS file: /cvsroot/bootdisk/batch-installer/installer-raid-functions,v
diff -d -u -r1.11 -r1.12
--- installer-raid-functions	27 Aug 2002 13:11:32 -0000	1.11
+++ installer-raid-functions	10 Jan 2003 04:54:10 -0000	1.12
@@ -54,10 +54,6 @@
   # we can either use mdctl or raidtools. in either case raidtab
   # is generated and stored on destination partition, it also includes
   # (in comments) commands used to create raids with mdctl.
-  mdctl=no
-  if test -x /sbin/mdctl || test -x /bin/mdctl ; then
-    mdctl=yes
-  fi
   
   # extract information about raid devices to be configured
   id=0
@@ -223,21 +219,14 @@
       raid-raidstart )
         log info "$(nls "Starting RAID device /dev/md%s" $minor)"
         if test "x$dry_run" = "xno"; then
-  	  if [ $mdctl = yes ] ; then
-            log_wrap mdctl --run /dev/md$minor
-  	  else
-            log_wrap raidstart --configfile /tmp/raidtab /dev/md$minor
-  	  fi
+          log_wrap mdctl --run /dev/md$minor
         fi
         ;;
       raid-mkraid )
         log info "$(nls "Creating RAID device /dev/md%s" $minor)"
         if test "x$dry_run" = "xno"; then
-  	  if [ $mdctl = yes ] ; then
-            log_wrap $(echo $(grep MDCTL$minor: /tmp/raidtab | \
+	  log_wrap $(echo $(grep MDCTL$minor: /tmp/raidtab | \
   	  	sed -e "s/. MDCTL$minor://"))
-  	  else
-            log_wrap mkraid --force --configfile /tmp/raidtab /dev/md$minor
   	  fi
         fi
         ;;



Więcej informacji o liście dyskusyjnej pld-installer