use rw as litefile default on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7778 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
551cde5ef9
commit
745cd03e7b
@ -1,4 +1,11 @@
|
||||
package xCAT_plugin::litetree;
|
||||
|
||||
BEGIN
|
||||
{
|
||||
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
|
||||
}
|
||||
use lib "$::XCATROOT/lib/perl";
|
||||
|
||||
use xCAT::NodeRange;
|
||||
use Data::Dumper;
|
||||
use xCAT::Utils;
|
||||
@ -369,7 +376,14 @@ sub mergeArrays {
|
||||
foreach(@$arr){
|
||||
next if($_->{file} eq '');
|
||||
my $o = $_->{options};
|
||||
$o = "tempfs" unless ($o);
|
||||
unless ($o) {
|
||||
if (xCAT::Utils->isAIX()) {
|
||||
$o = "rw"; # default option if not provided
|
||||
} else {
|
||||
$o = "tempfs";
|
||||
}
|
||||
}
|
||||
|
||||
# TODO: put some logic in here to make sure that ro is alone.
|
||||
# if type is ro and con, then this is wrong silly!
|
||||
#if($p eq "ro" and $t eq "con"){
|
||||
|
Loading…
Reference in New Issue
Block a user