From bb01a14476d0d550a344da6fa65ec10079592d58 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Mon, 7 Jan 2013 08:36:22 +0000 Subject: [PATCH] Change the postbootscript permission while copying them to deploy dir git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14775 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-buildkit/bin/buildkit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index c9e17dea4..28b8a5f63 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -1813,7 +1813,7 @@ sub create_kitconf } } if ( !($::kit_config->{$s}{entries}[$li]->{$a} = - &cp_to_builddir($se->{$a},$::workdir.'/'.$::buildkit_def{$s}{$a}->{base_dir},$prefix)) ) { + &cp_to_builddir($a,$se->{$a},$::workdir.'/'.$::buildkit_def{$s}{$a}->{base_dir},$prefix)) ) { return 1; } } @@ -1893,6 +1893,7 @@ sub cp_to_builddir { + my $type = shift; my $files = shift; my $from_dir = shift; my $prefix = shift; @@ -1915,6 +1916,10 @@ sub cp_to_builddir return; } $copied_files .= ",$to_file_base"; + + if ($type eq 'postbootscripts') { + system("chmod 755 $to_file"); + } } $copied_files =~ s/^\,//; return $copied_files;