From c227fc75ec75b2c28b2bb919264b4dfefdf1aa70 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Tue, 28 Sep 2010 02:34:58 +0000 Subject: [PATCH] /install is hard coded git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 2 +- xCAT-server/lib/xcat/plugins/windows.pm | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index b7690af5a..4213fac10 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -1069,7 +1069,7 @@ sub mkinstall { $callback->( { - error => ["Install image not found in /install/$os/$arch"], + error => ["Install image not found in $installroot/$os/$arch"], errorcode => [1] } ); diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 7be25bde2..0cd4e33b5 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -41,7 +41,7 @@ sub process_request my $arch = undef; my $path = undef; my $installroot; - $installroot = "/install"; + $installroot = xCAT::Utils->getInstallDir(); if ($request->{command}->[0] eq 'copycd') { return copycd($request, $callback, $doreq); @@ -65,7 +65,7 @@ sub mkimage { #-If going to /audit, it's more useful than /oobe. # audit complains about incorrect password on first boot, without any login attempt # audit causes a 'system preparation tool' dialog on first boot that I close - my $installroot = "/install"; + my $installroot = xCAT::Utils->getInstallDir(); my $request = shift; my $callback = shift; my $doreq = shift; @@ -125,7 +125,7 @@ sub mkimage { } sub mkwinlinks { - my $installroot = "/install"; # for now put this, as it breaks for imagex + my $installroot = xCAT::Utils->getInstallDir(); # for now put this, as it breaks for imagex my $node = shift; my $ent = shift; my $uuid = shift; @@ -136,7 +136,7 @@ sub mkwinlinks { } sub winshell { - my $installroot = "/install"; + my $installroot = xCAT::Utils->getInstallDir(); my $request = shift; my $script = "cmd"; my @nodes = @{$request->{node}}; @@ -202,7 +202,7 @@ ENDAPPLY sub mkinstall { my $installroot; - $installroot = "/install"; + $installroot = xCAT::Utils->getInstallDir(); my $request = shift; my $callback = shift; my $doreq = shift; @@ -323,7 +323,7 @@ sub mkinstall $tmperr = xCAT::Template->subvars( $tmplfile, - "/install/autoinst/$node", + "$installroot/autoinst/$node", $node, 0 );