summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins/plugins')
-rw-r--r--os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm4
-rw-r--r--os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm14
-rw-r--r--os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm8
3 files changed, 14 insertions, 12 deletions
diff --git a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm
index 787991c3..252e8ae7 100644
--- a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm
+++ b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm
@@ -30,7 +30,9 @@ sub new
{
my $class = shift;
- my $self = {};
+ my $self = {
+ name => 'example',
+ };
return bless $self, $class;
}
diff --git a/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm b/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm
index c2897eec..4bd83c69 100644
--- a/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm
+++ b/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm
@@ -29,7 +29,9 @@ sub new
{
my $class = shift;
- my $self = {};
+ my $self = {
+ name => 'theme',
+ };
return bless $self, $class;
}
@@ -113,20 +115,18 @@ sub getAttrInfo
sub suggestAdditionalKernelParams
{
- my $self = shift;
- my $kernelParams = shift;
+ my $self = shift;
+ my $makeInitRamFSEngine = shift;
my @suggestedParams;
# add vga=0x317 unless explicit vga-mode is already set
- if ($kernelParams !~ m{\bvga=}) {
- vlog(1, "theme-plugin: adding kernel-param vga=0x317");
+ if (!$makeInitRamFSEngine->haveKernelParam(qr{\bvga=})) {
push @suggestedParams, 'vga=0x317';
}
# add quiet, if not already set
- if ($kernelParams !~ m{\bquiet\b}) {
- vlog(1, "theme-plugin: adding kernel-param quiet");
+ if (!$makeInitRamFSEngine->haveKernelParam('quiet')) {
push @suggestedParams, 'quiet';
}
diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
index b466dd17..d3d5375a 100644
--- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
+++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
@@ -25,7 +25,9 @@ sub new
{
my $class = shift;
- my $self = {};
+ my $self = {
+ name => 'vmware',
+ };
return bless $self, $class;
}
@@ -83,9 +85,7 @@ sub suggestAdditionalKernelModules
my $makeInitRamFSEngine = shift;
# simply suggest these and see where we go from there (what is vmblock?)
- my @suggestedModules = qw( vmmon vmnet vmblock );
-
- return @suggestedModules;
+ return qw( vmmon vmnet vmblock );
}
1;