diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 45d5ed8bc..c83e04264 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -2163,6 +2163,20 @@ sub osver } } } + elsif (-f "/etc/debian_version") #possible debian + { + if (open($relfile, "<", "/etc/issue")){ + $line = <$relfile>; + if ( $line =~ /debian.*/i){ + $os = "debian"; + my $relfile1; + open($relfile1, "<", "/etc/debian_version"); + $ver = <$relfile1>; + close($relfile1); + } + close($relfile); + } + } $os = "$os" . "$ver"; return ($os); }