From 5b2c95db059912c06532ddbe425a3b4b00b1a74a Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 8 Feb 2026 21:21:07 +0000 Subject: Add {media}{bootloader_entries}{message} key. This allows a message to be displayed whilst loading the Linux kernel and initial RAM disk, which can take some time with slow media. --- lib/MGA/DrakISO/BuildBoot.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/MGA/DrakISO/BuildBoot.pm b/lib/MGA/DrakISO/BuildBoot.pm index 83f158c..c64d3f0 100644 --- a/lib/MGA/DrakISO/BuildBoot.pm +++ b/lib/MGA/DrakISO/BuildBoot.pm @@ -397,6 +397,7 @@ sub build_grub2_cfg { ), (map { my ($name, $options) = @$_; + my $message = $options->{message}; my $command = $options->{command} || '$linux'; my $image = $options->{image} || get_default_image($build, $name); my $initrd = $options->{initrd} || get_default_initrd($build); @@ -410,6 +411,9 @@ sub build_grub2_cfg { "if [ \$grub_platform != 'efi' ] ; then", # EFI doesn't support 16-bit ), "menuentry $gettext\"$name\" {", + if_($message, + " echo \"$message\"" + ), " $command $image " . join(' ', get_default_append($build), $append), if_($initrd ne 'none' && defined $initrd_command{$command}, " $initrd_command{$command} $initrd", -- cgit v1.2.1