diff options
| author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2026-02-08 21:21:07 +0000 |
|---|---|---|
| committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2026-02-08 21:35:04 +0000 |
| commit | 5b2c95db059912c06532ddbe425a3b4b00b1a74a (patch) | |
| tree | dadcae25a5fd51cb483a28b1c7230166019d2168 /lib/MGA/DrakISO/BuildBoot.pm | |
| parent | 0c9ddff2526647a1d736d412f7463d5ffada1169 (diff) | |
| download | drakiso-5b2c95db059912c06532ddbe425a3b4b00b1a74a.tar drakiso-5b2c95db059912c06532ddbe425a3b4b00b1a74a.tar.gz drakiso-5b2c95db059912c06532ddbe425a3b4b00b1a74a.tar.bz2 drakiso-5b2c95db059912c06532ddbe425a3b4b00b1a74a.tar.xz drakiso-5b2c95db059912c06532ddbe425a3b4b00b1a74a.zip | |
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.
Diffstat (limited to 'lib/MGA/DrakISO/BuildBoot.pm')
| -rw-r--r-- | lib/MGA/DrakISO/BuildBoot.pm | 4 |
1 files changed, 4 insertions, 0 deletions
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", |
