summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm')
-rw-r--r--os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm b/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm
index 7de608af..a00cd8a2 100644
--- a/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm
+++ b/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm
@@ -111,6 +111,28 @@ sub getAttrInfo
};
}
+sub suggestAdditionalKernelParams
+{
+ my $self = shift;
+ my $kernelParams = 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");
+ push @suggestedParams, 'vga=0x317';
+ }
+
+ # add quiet, if not already set
+ if ($kernelParams !~ m{\bquiet\b}) {
+ vlog(1, "theme-plugin: adding kernel-param quiet");
+ push @suggestedParams, 'quiet';
+ }
+
+ return @suggestedParams;
+}
+
sub copyRequiredFilesIntoInitramfs
{
my $self = shift;