Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > b1492c39df5342a968a22a9cb9cbe9a8 > files > 2

ka-deploy-0.92-18mdv2008.0.src.rpm

--- scripts/ka-d.sh	2002-06-21 19:30:46.000000000 +0200
+++ scripts/ka-d.sh	2002-11-12 16:24:03.000000000 +0100
@@ -31,6 +31,7 @@
 ka_call_num=0
 tar_opts=""
 excluded=""
+STAGE2_PATH="/mnt/ka"
 usage="
 $0 : clone this machine
 Usage:
@@ -49,6 +50,11 @@
 # ------> done by default
 
 
+if [ ! -f $STAGE2_PATH/ka/ka-d-client ]; then
+	echo "You should have a valid ka rescue boot image mounted in $STAGE2_PATH"
+	echo "mount rescue_stage2 $STAGE2_PATH -o loop"
+	exit	
+fi
 
 
 # write message to STDERR
@@ -306,7 +312,7 @@
 		fields=( $line )
 
 		case ${fields[2]} in
-			ext3 | ext2 | swap )
+			reiserfs | xfs | jfs | ext3 | ext2 | swap )
 				add_mnt ${fields[0]} ${fields[1]} ${fields[2]}
 				;;
 		esac
@@ -446,6 +452,10 @@
 	echo "$run_command" > $tmpdir/command
 fi
 
+
+echo +++ Sending Stage2 +++
+$kadserver -s getstage2 -n $nbnodes -e "(cd $STAGE2_PATH; tar --create --one-file-system --sparse $tar_opts . )"
+
 echo Sending partition/filesystem/mount points informations...
 echo +++ Running ka-deploy +++
 inc_ka_session