Mageia Bugzilla – Attachment 9263 Details for
Bug 20777
Add "please wait" message when running grub2-update in installer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch to add "please wait" message when running update-grub2
0001-Add-please-wait-message-when-running-update-grub2.patch (text/plain), 969 bytes, created by
Martin Whitaker
on 2017-05-03 10:10:50 CEST
(
hide
)
Description:
Patch to add "please wait" message when running update-grub2
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-05-03 10:10:50 CEST
Size:
969 bytes
patch
obsolete
>From 94d6bd2bf24676ba72f86071ea7eec1ef196b093 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Wed, 3 May 2017 08:57:47 +0100 >Subject: [PATCH] Add "please wait" message when running update-grub2. > >This can take several minutes on systems with many O/S installations. > >diff --git a/perl-install/any.pm b/perl-install/any.pm >index 025daec..dfc97f9 100644 >--- a/perl-install/any.pm >+++ b/perl-install/any.pm >@@ -616,7 +616,10 @@ sub setupBootloader__grub2 { > > # update entries (so that we can display their list below): > my $error; >+ # grub2-update can take many minutes on some systems (mga#18538) >+ my $_w = $in->wait_message(N("Please wait"), N("Please wait")); > run_program::rooted($::prefix, 'update-grub2', '2>', \$error) or die "update-grub2 failed: $error"; >+ undef $_w; > > # read grub2 auto-generated entries (instead of keeping eg: grub/lilo ones): > my $b2 = bootloader::read_grub2(); >-- >2.10.2 >
From 94d6bd2bf24676ba72f86071ea7eec1ef196b093 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Wed, 3 May 2017 08:57:47 +0100 Subject: [PATCH] Add "please wait" message when running update-grub2. This can take several minutes on systems with many O/S installations. diff --git a/perl-install/any.pm b/perl-install/any.pm index 025daec..dfc97f9 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -616,7 +616,10 @@ sub setupBootloader__grub2 { # update entries (so that we can display their list below): my $error; + # grub2-update can take many minutes on some systems (mga#18538) + my $_w = $in->wait_message(N("Please wait"), N("Please wait")); run_program::rooted($::prefix, 'update-grub2', '2>', \$error) or die "update-grub2 failed: $error"; + undef $_w; # read grub2 auto-generated entries (instead of keeping eg: grub/lilo ones): my $b2 = bootloader::read_grub2(); -- 2.10.2
View Attachment As Raw
Actions:
View
Attachments on
bug 20777
: 9263