Bug 18538 - UEFI x86-64 install takes about 15 min to install bootloader, Live and Classical Installer
Summary: UEFI x86-64 install takes about 15 min to install bootloader, Live and Classi...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks: 416
  Show dependency treegraph
 
Reported: 2016-05-25 09:30 CEST by Ben McMonagle
Modified: 2020-07-13 12:01 CEST (History)
7 users (show)

See Also:
Source RPM: grub2, os-prober
CVE:
Status comment:


Attachments
UEFI Plasma5 Live install (918.37 KB, text/plain)
2016-05-25 09:31 CEST, Ben McMonagle
Details
installer report with online media added, (736.25 KB, text/plain)
2016-05-26 10:01 CEST, Ben McMonagle
Details
UEFI Classical Installer report (196.85 KB, application/x-xz)
2016-05-26 11:09 CEST, Ben McMonagle
Details

Description Ben McMonagle 2016-05-25 09:30:22 CEST
Description of problem: at the completion of the live install, installation of bootloader takes about 15 minutes- much longer than the CI install 


Version-Release number of selected component (if applicable):
Mageia-6-sta1-LiveDVD-PLASMA5-x86_64-DVD.iso
DATE.txt:  Sun May 22 15:00:00 CEST 2016


How reproducible:


Steps to Reproduce:
1.boot above .iso in UEFI mode and start installer
2.choose location of bootloader
3.start installation of bootloader
Comment 1 Ben McMonagle 2016-05-25 09:31:31 CEST
Created attachment 7855 [details]
UEFI Plasma5 Live install
Ben McMonagle 2016-05-25 09:31:48 CEST

Keywords: (none) => 6sta1

Comment 2 Rémi Verschelde 2016-05-25 09:34:29 CEST
I remember that Lewis had a similar issue during Mageia 5 testing due to os-prober choking on another Linux system, so CC'ing Lewis and Barry to investigate this possibility.

CC: (none) => lewyssmith, zen25000

Comment 3 Barry Jackson 2016-05-25 13:24:13 CEST
Could you please test with latest os-prober in cauldron:
os-prober-1.71-8
Marja Van Waes 2016-05-25 22:30:46 CEST

Assignee: bugsquad => tmb
Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 4 Ben McMonagle 2016-05-25 22:37:02 CEST
(In reply to Barry Jackson from comment #3)
> Could you please test with latest os-prober in cauldron:
> os-prober-1.71-8

how do I make the live-installer use os-prober-1.71-8?.
Comment 5 Thomas Backlund 2016-05-25 22:45:13 CEST
(In reply to ben mcmonagle from comment #4)
> (In reply to Barry Jackson from comment #3)
> > Could you please test with latest os-prober in cauldron:
> > os-prober-1.71-8
> 
> how do I make the live-installer use os-prober-1.71-8?.

Add online medias before starting the install.
Comment 6 Lewis Smith 2016-05-26 09:49:12 CEST
This looks like bug 16010

I have lived with this problem since. At each kernel upgrade, there is a 10m pause for the new bootloader installation. No errors signalled. This is put down to os-prober: see Comment 32 in that bug. Same problem with Manjaro.

When doing a Mageia installation, if (for the Classic) one clicked on the summary screen 'configure bootloader' - necessary at the time (M5) to enforce Grub2 graphical - , *that* took 10m before returning. And there was then another 10m wait subsequently while it did its final bootloader installation.

For Mageia 6, Classic, the bootloader looked correctly pre-set i.e. did not need configuring further, there was still the final 10m pause when it was installed. Yet to try a 'Live' ISO.
Comment 7 Ben McMonagle 2016-05-26 10:01:49 CEST
Created attachment 7860 [details]
installer report with online media added,

installed os-prober-1.71-8 before starting.
still takes a long time to install bootloader
Comment 8 Ben McMonagle 2016-05-26 11:09:41 CEST
Created attachment 7861 [details]
UEFI Classical Installer  report

also takes a very long time to complete bootloader installation
Ben McMonagle 2016-05-26 11:10:35 CEST

Summary: [6sta1] UEFI Live Plasma install takes about 15 min to install bootloader => [6sta1] UEFI x86-64 install takes about 15 min to install bootloader, Live and Classical Installer

Comment 9 Barry Jackson 2016-05-26 15:11:54 CEST
How long does it take os-prober to run stand-alone on the installed system?

su
os-prober
Comment 10 Lewis Smith 2016-05-26 20:30:40 CEST
(In reply to Barry Jackson from comment #9)
> How long does it take os-prober to run stand-alone on the installed system?
> su
> os-prober

To whom are you adressing this, Barry? And for Mageia 5 &/or 6?
For myself, I know Mageia 5 os-prober runs 10 minutes. I can try 6 if you like.
Comment 11 Barry Jackson 2016-05-26 21:18:10 CEST
Lewis - It was to you for Mga6, but test after the latest update to grub2 that Thierry has patched - https://bugs.mageia.org/show_bug.cgi?id=16010
Comment 12 Barry Jackson 2016-05-28 12:51:43 CEST
Lewis/Ben - see https://bugs.mageia.org/show_bug.cgi?id=18565
Comment 13 Lewis Smith 2016-05-30 10:29:19 CEST
From Bug 16010 Comment 59, which I think should be closed and continued in *this* one.

Testing x64 real EFI hardware Mageia 6

 os-prober-1.71-6.mga6
 grub2-common-2.02-0.git10457.5.mga6
 grub2-efi-2.02-0.git10457.5.mga6
 grub2-mageia-theme-2.02-0.git10457.5.mga6
Note that the grub2 version is advanced from that cited to try in Comment 56.
Mageia 6 Classic install is on sda11.

# time os-prober
/dev/sda10:Korora release 20 (Peach):Fedora:linux
/dev/sda12:Mageia 5 (5):Mageia:linux
/dev/sda13:Mageia 5 (5):Mageia1:linux
/dev/sda14:LMDE MATE Edition (1):LinuxMint:linux
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda8:Manjaro Linux (16.06-rc1):ManjaroLinux:linux
/dev/sda9:openSUSE 12.3 (x86_64):SuSE:linux
real	6m20.970s

# time update-grub
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.6.0-desktop-1.mga6
Found initrd image: /boot/initrd-4.6.0-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Korora release 20 (Peach) on /dev/sda10
Found Mageia 5 (5) on /dev/sda12
Found Mageia 5 (5) on /dev/sda13
Found LMDE MATE Edition (1) on /dev/sda14
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Manjaro Linux (16.06-rc1) on /dev/sda8
Found openSUSE 12.3 (x86_64) on /dev/sda9
done
real	7m53.911s

Well, better than 10m.
Comment 14 Lewis Smith 2016-05-30 10:30:33 CEST
(In reply to Barry Jackson from comment #12)
> Lewis/Ben - see https://bugs.mageia.org/show_bug.cgi?id=18565

No BTRFS nor LVM here.
Comment 15 Lewis Smith 2016-05-30 10:41:46 CEST
Subsequent to the test in Comment 13 above, re-boot showed a *text* menu; but which worked.
Comment 16 Ben McMonagle 2016-05-30 11:49:38 CEST
and my resultts:

Testing x64 real EFI hardware Mageia 6

os-prober-1.71-8.mga6.x86_64
grub2-common-2.02-0.git10457.5.mga6.x86_64
grub2-efi-2.02-0.git10457.5.mga6.x86_64
grub2-mageia-theme-2.02-0.git10457.5.mga6.noarch 

Mageia 6 Classical install is on sde17

# time os-prober
/dev/sdb3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde19:Mageia 6 (6):Mageia4:linux
/dev/sde27:Mageia 6 (6):Mageia5:linux
/dev/sde3:Mageia 6 (6):Mageia6:linux
/dev/sde31:Mageia 6 (6):Mageia7:linux
/dev/sde33:Mageia 6 (6):Mageia8:linux
/dev/sde35:Mageia 6 (6):Mageia9:linux
/dev/sde37:Mageia 6 (6):Mageia10:linux
/dev/sde39:Mageia 5 (5):Mageia11:linux
/dev/sde41:Mageia 6 (6):Mageia12:linux
/dev/sde7:unknown Linux distribution:Linux:linux (failed 6sta1 install from weekend)
/dev/sde9:Mageia 6 (6):Mageia13:linux

real	2m33.508s  (this was more than 7 minutes before update)

# time update-grub
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.6.0-desktop-1.mga6
Found initrd image: /boot/initrd-4.6.0-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdb3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde19
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde31
Found Mageia 6 (6) on /dev/sde33
Found Mageia 6 (6) on /dev/sde35
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 6 (6) on /dev/sde41
Found unknown Linux distribution on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	10m26.642s

also No BTRFS nor LVM here.
also text menu for grub2 after above
Comment 17 Barry Jackson 2016-05-30 12:21:50 CEST
(In reply to Lewis Smith from comment #15)
> Subsequent to the test in Comment 13 above, re-boot showed a *text* menu;
> but which worked.

Re- the text menu - I think this is inevitable now that grub2 no longer Recommends grub2-mageia-theme.
I don't really understand why Thierry removed the Recommends as it is not *always* drakboot that installs grub2, as in this case.

Lewis and Ben - just install grub2-mageia-theme and run update-grub2.
Comment 18 Thierry Vignaud 2016-05-30 14:45:07 CEST
(In reply to Barry Jackson from comment #17)
It's _always_ drakboot that installs grub2 else it's done manually and the ones who it manually can handle it.
Else there's no way drakboot can enforce the choice between text & gfx as the needed pkg is already there and grub2'll automatically choose gfx.

(In reply to ben mcmonagle from comment #16)
> # time os-prober
(...)
> real	2m33.508s  (this was more than 7 minutes before update)
> 
> # time update-grub
(...)
> real	10m26.642s

That's still too much... :-(
I'm thinking we should offer a "detect foreign OS" checkbox in drakboot so that one decides to install/removes os-prober.
(SuSe has such as "probe foreign OS" checkbox...)
grub-probe/os-prober are still too slow.
Stopping updates by more 10mn is still way too much...
There's also a script just caching os-prober here:
https://github.com/GalliumOS/ubiquity/blob/master/compat/os-prober
It would need doing a recheck from times to times though

CC: (none) => thierry.vignaud

Comment 19 Thierry Vignaud 2016-05-30 14:49:45 CEST
And grub2-common should stops recommending os-prober for that checkbox to take effect until os-prober can run under a sane deadline...
Comment 20 Thierry Vignaud 2016-05-30 15:07:28 CEST
Barry, I see you blindly removed all FC patches for replacing them by SuSe ones.
As stated, suse enables to disable os-prober.
Some of the FC patches were _needed_ for speeing up os-prober.
I've readded them and explained why they're needed.
Plese don't remove them again.

To all:
Can you test grub2-2.02-0.git10457.2.mga6 + os-prober-1.71-9.mga6 from core/updates_testing once it finishes building and land on your favorite mirror?

For me, on a very fast machine with not much extra OS, /bin/time -v os-prober wents from 2s to 0.4s
I would like results from slower machines with more extra partitions with other OSes.
Comment 21 Lewis Smith 2016-05-31 10:17:43 CEST
(In reply to Thierry Vignaud from comment #20)
> To all:
> Can you test grub2-2.02-0.git10457.2.mga6 + os-prober-1.71-9.mga6 from
> core/updates_testing once it finishes building and land on your favorite
> mirror?

Testing M6 x64 real EFI hardware with the following OS's installed:
 sda2 = ESP (where the Win bootloader is found)
 sda4 = Win8.1
 sda8 = Manjaro
 sda9 = OpenSuse 12.3
 sda10 = Korora 20
 sda11 = Mageia 6
 sda12 = Mageia 5
 sda13 = another Mageia 5
 sda14 = LMDE

M6 Updates Testing did not have grub2-2.02-0.git10457.2.mga6, it already seems to have been superseded & updated on my M6 system (see my test Comment 13):
 grub2-common-2.02-0.git10457.5.mga6
 grub2-efi-2.02-0.git10457.5.mga6
 grub2-mageia-theme-2.02-0.git10457.5.mga6
and updated:
 os-prober-1.71-9.mga6

Bingo! Compare my Comment 6. Thanks to Barry especially + Thierry.

# time os-prober
/dev/sda10:Korora release 20 (Peach):Fedora:linux
/dev/sda12:Mageia 5 (5):Mageia:linux
/dev/sda13:Mageia 5 (5):Mageia1:linux
/dev/sda14:LMDE MATE Edition (1):LinuxMint:linux
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda8:Manjaro Linux (16.06-rc1):ManjaroLinux:linux
/dev/sda9:openSUSE 12.3 (x86_64):SUSE:linux
real	0m23.131s

# time update-grub
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.6.0-desktop-1.mga6
Found initrd image: /boot/initrd-4.6.0-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Korora release 20 (Peach) on /dev/sda10
Found Mageia 5 (5) on /dev/sda12
Found Mageia 5 (5) on /dev/sda13
Found LMDE MATE Edition (1) on /dev/sda14
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Manjaro Linux (16.06-rc1) on /dev/sda8
Found openSUSE 12.3 (x86_64) on /dev/sda9
done
real	1m59.085s

So the culprit really was os-prober, not grub2. Please for Mageia 5 ASAP.
Comment 22 Lewis Smith 2016-05-31 10:26:25 CEST
@Ben
Let us wait until the next *viable* M6 ISOs are available, and if their EFI bootloader installation goes OK, we can then close this bug. Better to jump that hurdle first, rather than close it immediately if you get the same satisfactory results on an updated already installed system.
Comment 23 Thierry Vignaud 2016-05-31 10:47:22 CEST
(In reply to Lewis Smith from comment #21)
> So the culprit really was os-prober, not grub2. Please for Mageia 5 ASAP.

Those patches are already part of mga5's os-prober (eg: os-prober-1.65-9.6.mga5)
Comment 24 Thierry Vignaud 2016-05-31 10:52:44 CEST
Barry I don't know why you removed all FC patches in order to put all SuSe fixes just for one bug with btrfs (you could have switch to the suse btrfs patch) but I think you'd better check we didn't loose any other fixes...
Thierry Vignaud 2016-05-31 10:55:15 CEST

Blocks: (none) => 416

Thierry Vignaud 2016-05-31 10:55:34 CEST

Source RPM: (none) => grub2, os-prober

Comment 25 Ben McMonagle 2016-05-31 11:10:22 CEST
my latest results:

Testing x64 real EFI hardware Mageia 6

os-prober-1.71-9.mga6.x86_64
grub2-common-2.02-0.git10457.5.mga6.x86_64
grub2-efi-2.02-0.git10457.5.mga6.x86_64
grub2-mageia-theme-2.02-0.git10457.5.mga6.noarch 

# time os-prober
/dev/sdb3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde19:Mageia 6 (6):Mageia4:linux
/dev/sde27:Mageia 6 (6):Mageia5:linux
/dev/sde3:Mageia 6 (6):Mageia6:linux
/dev/sde31:Mageia 6 (6):Mageia7:linux
/dev/sde33:Mageia 6 (6):Mageia8:linux
/dev/sde35:Mageia 6 (6):Mageia9:linux
/dev/sde37:Mageia 6 (6):Mageia10:linux
/dev/sde39:Mageia 5 (5):Mageia11:linux
/dev/sde41:Mageia 6 (6):Mageia12:linux
/dev/sde7:unknown Linux distribution:Linux:linux
/dev/sde9:Mageia 6 (6):Mageia13:linux

real	2m20.217s

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.6.0-desktop-1.mga6
Found initrd image: /boot/initrd-4.6.0-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdb3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde19
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde31
Found Mageia 6 (6) on /dev/sde33
Found Mageia 6 (6) on /dev/sde35
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 6 (6) on /dev/sde41
Found unknown Linux distribution on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	9m12.688s

both slightly faster by a few seconds

Im not sure that a normal user would have 40+ partitions though
Comment 26 Thierry Vignaud 2016-05-31 11:18:43 CEST
Even if os-prober is now faster, update-grub2 is still taking too much time...
Comment 27 Lewis Smith 2016-05-31 14:15:47 CEST
(In reply to Thierry Vignaud from comment #23)
> (In reply to Lewis Smith from comment #21)
> > So the culprit really was os-prober, not grub2. Please for Mageia 5 ASAP.
> Those patches are already part of mga5's os-prober (eg:
> os-prober-1.65-9.6.mga5)
So why, on the same box, Mageia 5:
 grub2-efi-2.02-0.git9752.18.4.mga5
 grub2-mageia-theme-2.02-0.git9752.18.4.mga5
 os-prober-1.65-9.6.mga5

# time os-prober
/dev/sda10:Korora release 20 (Peach):Fedora:linux
/dev/sda11:Mageia 6 (6):Mageia:linux
/dev/sda13:Mageia 5 (5):Mageia1:linux
/dev/sda14:LMDE MATE Edition (1):LinuxMint:linux
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda8:Manjaro Linux (16.06-rc1):ManjaroLinux:linux
/dev/sda9:openSUSE 12.3 (x86_64):SUSE:linux
real	11m54.969s
?

I wonder why my latest M6 experience is so different from Ben's, using the same os-prober & grub2. Just a question of the number of discs/partitions? Me: 1 disc, 14 partitions; Ben several discs, 40+ partitions. The times are vaguely in proportion.
Comment 28 Mageia Robot 2016-06-06 11:12:27 CEST
commit 8847eda6f7f8aaad07931290f1a37a5e44f7a426
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Mon Jun 6 11:12:04 2016 +0200

    enable to (un)install os-prober
    
    thus enabling to prevent slow boot (mga#16010, mga#18538)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=8847eda6f7f8aaad07931290f1a37a5e44f7a426

 Bug links:
   Mageia
      https://bugs.mageia.org/16010
      https://bugs.mageia.org/18538
Comment 29 Ben McMonagle 2016-06-08 11:31:04 CEST
valid for:

Mageia-6-sta1-i586-DVD.iso
DATE.txt: Mon Jun  6 23:20:56 CEST 2016
Ben McMonagle 2016-06-08 11:31:19 CEST

Hardware: x86_64 => All

Comment 30 Barry Jackson 2016-06-08 13:48:18 CEST
It would be good if you could you try enabling cauldron repos during an upgrade of that install to see if current cauldron packages improve this?
(Not sure if that is easily done or not from the installer) ;)
Comment 31 Thierry Vignaud 2016-06-08 14:23:55 CEST
Drakx offers that if you do a DVD install (obviously not if you're doing a network installation).

Note that on summary step, you can now disable os-prober ("probe foreign OS").
That should make it fast.

cc-ing: Anne & Thomas: what do you think about not installing os-prober by default (aka remove the recommends on it from grub2) & make drakx auto pick it if we detect a Windows partition (it would be even better to check it really contains an OS).
Else it's up to the user to check in the ""probe foreign OS" checkbox in:
- either the bootloader config at summary step
- or in drakboot

CC: (none) => ennael1, tmb

Comment 32 Barry Jackson 2016-06-08 16:19:09 CEST
(In reply to Thierry Vignaud from comment #31)
> Drakx offers that if you do a DVD install (obviously not if you're doing a
> network installation).
> 
> Note that on summary step, you can now disable os-prober ("probe foreign
> OS").
> That should make it fast.
> 
> cc-ing: Anne & Thomas: what do you think about not installing os-prober by
> default (aka remove the recommends on it from grub2)

Please no.

> & make drakx auto pick
> it if we detect a Windows partition (it would be even better to check it
> really contains an OS).

Why only Windows? Sounds like you want to write a new mga-prober to decide whether to use os-prober /o\

> Else it's up to the user to check in the ""probe foreign OS" checkbox in:
> - either the bootloader config at summary step
> - or in drakboot

Yes that's OK but please default it to checked.

Does this slow os-prober issue affect more than two users? (Ben and Lewis). Even on my old pIII with two Windows installs it takes only a couple of seconds.
Comment 33 Thierry Vignaud 2016-06-08 16:36:49 CEST
Giving it has been reported on lots of distros, yes it affects more than 2 users.
And don't forget that those who go along up to bother finding mga bugzilla, creating a bugzilla account, filling in a bug, ... are _not_ the bulk of our users...
Thierry Vignaud 2016-06-08 16:37:03 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=16010

Comment 34 Rémi Verschelde 2016-06-08 16:41:44 CEST
I wouldn't be for enabling os-prober just based on having detected Windows partitions. The examples we had where os-prober was slow was actually for detecting other _Linux_ partitions, and dozens of them.

I'd be more for the checkbox option, making os-prober _opt-out_ (i.e. it's ticked on by default, and there would be a warning that it might be slow, so people can choose to skip it).

We could maybe also rely on diskdrake to show a warning for users with more than e.g. 8 partitions, to tell them that OS probing might take a long time, and they might want to do it post-install instead.
Comment 35 Barry Jackson 2016-06-08 16:57:02 CEST
"Probe foreign OS". May be not very clear for 'not so tech' users.
Possibly 'Add other systems to menu' or suchlike?
Comment 36 Rémi Verschelde 2016-06-08 17:05:41 CEST
(In reply to Barry Jackson from comment #35)
> "Probe foreign OS". May be not very clear for 'not so tech' users.
> Possibly 'Add other systems to menu' or suchlike?

I agree. Maybe something like:

'Add other installed systems to the bootloader (detection of those systems might take some time)'
Comment 37 Thierry Vignaud 2016-06-08 17:48:47 CEST
(In reply to Barry Jackson from comment #35)
That's the string apprently used by SuSe so it's somewhat known
Comment 39 Barry Jackson 2016-06-08 18:32:30 CEST
I'm not convinced that's any good reason to copy them. It's so bad that they have to explain what it means!

"Probe Foreign OS
    When selected, the boot loader searches for other systems like Windows or other Linux installations."

"Search for other systems" then?

I dread to think how "Probe foreign OS" could appear in some translations :)
Thierry Vignaud 2016-07-25 14:31:40 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=19047

Thierry Vignaud 2016-07-25 14:35:32 CEST

See Also: https://bugs.mageia.org/show_bug.cgi?id=19047 => (none)

Comment 40 Ben McMonagle 2016-08-17 11:06:07 CEST
some info:

maybe for Mga_6 errata, known installer issues?

when I had 21 systems installed:

Mageia-6-RC-i586-DVD.iso
DATE.txt: Sat Aug 13 15:42:09 CEST 2016
md5sum:  e6f153469350ac7cce80d10d47f96222 

would fail with grub2 install failure,
reducing this # to 17 allows os_prober to complete before time-out.


just a side note: Mga5 never fails to re-install with UEFI in same system.
Comment 41 Lewis Smith 2016-11-17 14:47:24 CET
This looks the same terminal - not original - problem as Bug 16010 (now closed); and Bug 15752. If somebody Bugzilla responsible agrees that 15752 & this bug 18538 are effectively duplicates, I suggest closing one of them appropriately: probably the other.

Looking back at 16010 re the long time to run os-prober, hence do installations & kernel updates, I have a significant addition (which I shall post also on 15752):
Early in that closed bug Barry asked about a certain partition 10; comments 5 & 12.

Real EFI/GPT hardware:
It happens that I have recently removed Korora [ex Fedora] which was on partition 10, because of its very intrusive nature in NVRAM & the ESP, probably due to it doing 'secure boot'. At the same time I *increased* the number of partitions to 16. I have noticed since that os-prober (at least; yet to try a kernel upgrade or new installation) happens much faster, at least for Mageia 5, yet to try 6.
From up-to-date Mageia 5:
 # time os-prober
 /dev/sda11:Mageia 6 (6):Mageia:linux
 /dev/sda13:Mageia 5 (5):Mageia1:linux
 /dev/sda14:LMDE MATE Edition (1):LinuxMint:linux
 /dev/sda16:Mageia 5 (5):Mageia2:linux
 /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
 /dev/sda8:Manjaro Linux (16.10):ManjaroLinux:linux
 /dev/sda9:openSUSE 12.3 (x86_64):SUSE:linux
 real	0m25.038s
which suggests that the presence of Korora/Fedora *did* matter, rather than the number of partitions.
Comment 42 Thomas Andrews 2016-12-11 18:16:17 CET
I first came across this in the installer during the pretesting of the Mga6 sta2 64-bit LiveDVD isos. I was testing on an older machine with an existing Windows XP partition that I haven't used in a while, and a Mga5 KDE install, on two hard drives. I was installing into existing partitions that I have been using for testing, on the same drive as the XP partition.

I can't remember now whether I didn't notice the check box, or did and didn't understand what it was for and just left it alone, unchecked, and went ahead with the installation. Imagine my surprise when I rebooted, and instead of seeing the expected choice of three OSes, I only saw one! I thought it was a bug, but after some discussion with the other testers I learned of this bug report, and the reason for the check box. 

Installing again, with the box checked, did NOT take an inordinate amount of time to complete, but I only have three OSes on that machine.

Just my opinion, but I believe the box should be checked by default, and that there should be a more informative reason for it posted where it would be better noticed. 

I'm thinking here of a Linux novice, installing Mageia for the first time. If that user had been expecting his existing OS to appear in the boot menu alongside Mageia, and didn't see it, I can easily see him jumping to the conclusion that his old OS had been destroyed by Mageia during the install, and panicking about it. 

Not at all a desirable situation, if you ask me.

CC: (none) => andrewsfarm

Comment 43 Mageia Robot 2016-12-11 18:34:19 CET
commit 4941a2af6dc4ad94abeee810d6e0eb6e2bf241cb
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Sun Dec 11 18:27:56 2016 +0100

    describe what skipping os-prober does (mga#18538)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=4941a2af6dc4ad94abeee810d6e0eb6e2bf241cb
Thierry Vignaud 2016-12-22 09:04:53 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=19997

Comment 44 Lewis Smith 2016-12-22 11:31:06 CET
On real EFI/GPT hardware, M6 sta2 and M5

I have noticed recently installing M6 that both end bootloader steps, which always used to take 10m each, are now down to 2-3m. Whether this is down to new something, or my recent removal of Korora/Fedora, I know not.

@Ben: have you noticed any improvement lately?
Comment 45 Ben McMonagle 2016-12-22 19:51:16 CET
(In reply to Lewis Smith from comment #44)
> On real EFI/GPT hardware, M6 sta2 and M5
> 
> 
> @Ben: have you noticed any improvement lately?

sadly, no.
But I will run "time os-prober" again, just to get some real times
Comment 46 Barry Jackson 2017-02-07 00:50:08 CET
@ben
I have updated to os-prober-1.74 (in updates_testing only for now)

Could you see if it makes any difference to the timings and also check for any regressions?

Thanks,
Barry
Comment 47 Ben McMonagle 2017-02-07 10:58:02 CET
(In reply to Barry Jackson from comment #46)
> @ben
> I have updated to os-prober-1.74 (in updates_testing only for now)
> 
> Could you see if it makes any difference to the timings and also check for
> any regressions?
> 
> Thanks,
> Barry

I apologise in advance for for the longwinded reply:

Fresh install Plasma5 x86_64 (from Live) 

os-prober-1.71-11.mga6.x86_64

time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde19:Mageia 6 (6):Mageia5:linux
/dev/sde27:Mageia 6 (6):Mageia6:linux
/dev/sde29:Mageia 6 (6):Mageia7:linux
/dev/sde3:Mageia 6 (6):Mageia8:linux
/dev/sde31:Mageia 6 (6):Mageia9:linux
/dev/sde35:Mageia 6 (6):Mageia10:linux
/dev/sde37:Mageia 6 (6):Mageia11:linux
/dev/sde39:Mageia 5 (5):Mageia12:linux
/dev/sde41:Mageia 5 (5):Mageia13:linux
/dev/sde5:Mageia 6 (6):Mageia14:linux
/dev/sde7:Mageia 6 (6):Mageia15:linux
/dev/sde9:Mageia 6 (6):Mageia16:linux

real    2m14.235s

grub2-common-2.02-0.git10463.5.mga6.x86_64
grub2-2.02-0.git10463.5.mga6.x86_64
grub2-efi-2.02-0.git10463.5.mga6.x86_64
grub2-mageia-theme-2.02-0.git10463.5.mga6.noarch

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.4-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.4-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde19
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde31
Found Mageia 6 (6) on /dev/sde35                                             
Found Mageia 6 (6) on /dev/sde37                                             
Found Mageia 5 (5) on /dev/sde39                                             
Found Mageia 5 (5) on /dev/sde41                                             
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real    15m54.559s

checked default online repos: os-prober-1.71-12.mga6.x86_64

replaced default online repos to :  
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64

installed os-prober-1.74-1.mga6.x86_64

time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde27:Mageia 6 (6):Mageia5:linux
/dev/sde29:Mageia 6 (6):Mageia6:linux
/dev/sde3:Mageia 6 (6):Mageia7:linux
/dev/sde31:Mageia 6 (6):Mageia8:linux
/dev/sde35:Mageia 6 (6):Mageia9:linux
/dev/sde37:Mageia 6 (6):Mageia10:linux
/dev/sde39:Mageia 5 (5):Mageia11:linux
/dev/sde41:Mageia 5 (5):Mageia12:linux
/dev/sde5:Mageia 6 (6):Mageia13:linux
/dev/sde7:Mageia 6 (6):Mageia14:linux
/dev/sde9:Mageia 6 (6):Mageia15:linux

real    0m28.420s

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.8-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.8-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-4.9.4-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.4-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde31
Found Mageia 6 (6) on /dev/sde35
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real    6m59.239s

rebooted to Mageia grub2 graphic -ok
"advanced" options display expected multiple kernel options
system boots back to desktop - ok

no regressions noted

looks good

thank you

Ben
Comment 48 Barry Jackson 2017-02-07 13:37:23 CET
Thanks Ben that looks encouraging, although the total time in the first case is around 7x the time taken by os-prober alone, whereas in the second case it is around 14x.
How that will scale with more systems on board I'm not sure.

It would have been good to also compare with os-prober-1.71-12.mga6.x86_64 which is similar to os-prober-1.71-11 but with a few more Fedora patches applied (most of these same patches are also in the 1.74 package) It is also in updates_testing as you found.
Any chance? ;)

Cheers,
Barry
Comment 49 Ben McMonagle 2017-02-08 08:16:45 CET
Gnome x86_64 (Live install) updated to latest (sde31)

(os-prober-1.71-11.mga6.x86_64)

# time os-prober 
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde19:Mageia 6 (6):Mageia5:linux
/dev/sde27:Mageia 6 (6):Mageia6:linux
/dev/sde29:Mageia 6 (6):Mageia7:linux
/dev/sde3:Mageia 6 (6):Mageia8:linux
/dev/sde33:Mageia 6 (6):Mageia9:linux
/dev/sde35:Mageia 6 (6):Mageia10:linux
/dev/sde37:Mageia 6 (6):Mageia11:linux
/dev/sde39:Mageia 5 (5):Mageia12:linux
/dev/sde41:Mageia 5 (5):Mageia13:linux
/dev/sde5:Mageia 6 (6):Mageia14:linux
/dev/sde7:Mageia 6 (6):Mageia15:linux
/dev/sde9:Mageia 6 (6):Mageia16:linux

real	2m13.886s

(grub2-common-2.02-0.git10463.5.mga6.x86_64
grub2-2.02-0.git10463.5.mga6.x86_64
grub2-efi-2.02-0.git10463.5.mga6.x86_64
grub2-mageia-theme-2.02-0.git10463.5.mga6.noarch)

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.8-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.8-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-4.9.4-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.4-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde19
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde33
Found Mageia 6 (6) on /dev/sde35
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	8m54.906s

urpme os-prober
removing os-prober-1.71-11.mga6.x86_64

enable repo:  http://mirrors.ustc.edu.cn/mageia/distrib/cauldron/x86_64

urpmi os-prober
installing os-prober-1.71-12.mga6.x86_64.rpm 

# time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde19:Mageia 6 (6):Mageia5:linux
/dev/sde27:Mageia 6 (6):Mageia6:linux
/dev/sde29:Mageia 6 (6):Mageia7:linux
/dev/sde3:Mageia 6 (6):Mageia8:linux
/dev/sde33:Mageia 6 (6):Mageia9:linux
/dev/sde35:Mageia 6 (6):Mageia10:linux
/dev/sde37:Mageia 6 (6):Mageia11:linux
/dev/sde39:Mageia 5 (5):Mageia12:linux
/dev/sde41:Mageia 5 (5):Mageia13:linux
/dev/sde5:Mageia 6 (6):Mageia14:linux
/dev/sde7:Mageia 6 (6):Mageia15:linux
/dev/sde9:Mageia 6 (6):Mageia16:linux

real	2m17.188s

change mirrors:  http://mirror.aarnet.edu.au/pub/mageia/distrib/cauldron/x86_64

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.8-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.8-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-4.9.4-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.4-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde19
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde33
Found Mageia 6 (6) on /dev/sde35
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	9m8.834s

# urpme os-prober
removing os-prober-1.71-12.mga6.x86_64

# urpmi os-prober
installing os-prober-1.74-1.mga6.x86_64.rpm

 # time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde27:Mageia 6 (6):Mageia5:linux
/dev/sde29:Mageia 6 (6):Mageia6:linux
/dev/sde3:Mageia 6 (6):Mageia7:linux
/dev/sde33:Mageia 6 (6):Mageia8:linux
/dev/sde35:Mageia 6 (6):Mageia9:linux
/dev/sde37:Mageia 6 (6):Mageia10:linux
/dev/sde39:Mageia 5 (5):Mageia11:linux
/dev/sde41:Mageia 5 (5):Mageia12:linux
/dev/sde5:Mageia 6 (6):Mageia13:linux
/dev/sde7:Mageia 6 (6):Mageia14:linux
/dev/sde9:Mageia 6 (6):Mageia15:linux

real	0m15.591s

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.8-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.8-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-4.9.4-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.4-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde33
Found Mageia 6 (6) on /dev/sde35
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	6m34.317s

not sure why the Gnome is much faster initially than the Plasma5
Comment 50 Lewis Smith 2017-02-08 20:13:10 CET
(In reply to Barry Jackson from comment #46)
> I have updated to os-prober-1.74 (in updates_testing only for now)
> 
Trying M5_64 real EFI box

BEFORE the latest update: os-prober-1.65-9.6.mga5

# time os-prober
/dev/sda10:Mageia 6 (6):Mageia:linux
/dev/sda11:Mageia 6 (6):Mageia1:linux
/dev/sda13:Mageia 6 (6):Mageia2:linux
/dev/sda14:LMDE MATE Edition (1):LinuxMint:linux
/dev/sda16:Mageia 5 (5):Mageia3:linux
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda8:Manjaro Linux (16.10):ManjaroLinux:linux
/dev/sda9:openSUSE 12.3 (x86_64):SUSE:linux

real	0m25.089s

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-tmb-desktop
Found initrd image: /boot/initrd-desktop.img
Found linux image: /boot/vmlinuz-linus
Found initrd image: /boot/initrd-linus.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found linux image: /boot/vmlinuz-4.4.45-desktop-1.mga5
Found initrd image: /boot/initrd-4.4.45-desktop-1.mga5.img
Found linux image: /boot/vmlinuz-4.4.39-tmb-desktop-1.mga5
Found initrd image: /boot/initrd-4.4.39-tmb-desktop-1.mga5.img
Found linux image: /boot/vmlinuz-4.4.39-desktop-1.mga5
Found initrd image: /boot/initrd-4.4.39-desktop-1.mga5.img
Found linux image: /boot/vmlinuz-4.4.39-1.mga5
Found initrd image: /boot/initrd-4.4.39-1.mga5.img
Found linux image: /boot/vmlinuz-4.4.36-desktop-2.mga5
Found initrd image: /boot/initrd-4.4.36-desktop-2.mga5.img
Found Mageia 6 (6) on /dev/sda10
Found Mageia 6 (6) on /dev/sda11
Found Mageia 6 (6) on /dev/sda13
Found LMDE MATE Edition (1) on /dev/sda14
Found Mageia 5 (5) on /dev/sda16
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Manjaro Linux (16.10) on /dev/sda8
Found openSUSE 12.3 (x86_64) on /dev/sda9
done

real	2m26.388s

This - particularly os-prober - is *much* faster than it used to be. I have already noted this speed improvement somewhere. Both commands shown used to take 10m.

I could not find os-prober in Updates Testing, via MCC, or:
 # urpmi --media '[Core ]Updates Testing' os-prober
 [No pkg named] os-prober
'coffee' is my normal repository. Perhaps the command was wrong. Await correction.
Comment 51 Barry Jackson 2017-02-09 15:39:57 CET
Thanks Ben and Lewis,

@Lewis

Thanks for trying, however no need now for any more tests - it is too broken.

It was actually Cauldron not Mga5 where I was asking for tests, sorry if I did not make that clear.

Anyhow, as I said don't bother now.

@Ben
Thanks again,
It seems that 1.74 will have benefits when it's other issues are resolved.
At present it's missing some patches that fix btrfs problems. Neil is currently attempting to incorporate these which is not easy as so much has changed in this new version.

Barry
Comment 52 Ben McMonagle 2017-02-24 09:14:50 CET
updated system to latest
Cinnamon only install from sta2 x86_64.iso
(I needed to remove some installed systems to complete the install)
# urpmf -f --name -m os-prober
os-prober-1.71-11.mga6.x86_64:Core Release

# time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde27:Mageia 6 (6):Mageia5:linux
/dev/sde29:Mageia 6 (6):Mageia6:linux
/dev/sde3:Mageia 6 (6):Mageia7:linux
/dev/sde31:Mageia 6 (6):Mageia8:linux
/dev/sde39:Mageia 5 (5):Mageia9:linux
/dev/sde41:Mageia 5 (5):Mageia10:linux
/dev/sde5:Mageia 6 (6):Mageia11:linux
/dev/sde7:Mageia 6 (6):Mageia12:linux
/dev/sde9:Mageia 6 (6):Mageia13:linux

real	1m55.407s

urpmf -f --name -m grub2
grub2-common-2.02-0.git10463.5.mga6.x86_64
grub2-2.02-0.git10463.5.mga6.x86_64:
grub2-efi-2.02-0.git10463.5.mga6.x86_64

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.11-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.11-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde31
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	10m24.047s

# urpmf -f --name -m os-prober
os-prober-1.74-2.mga6.x86_64
# time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde27:Mageia 6 (6):Mageia5:linux
/dev/sde29:Mageia 6 (6):Mageia6:linux
/dev/sde3:Mageia 6 (6):Mageia7:linux
/dev/sde31:Mageia 6 (6):Mageia8:linux
/dev/sde39:Mageia 5 (5):Mageia9:linux
/dev/sde41:Mageia 5 (5):Mageia10:linux
/dev/sde5:Mageia 6 (6):Mageia11:linux
/dev/sde7:Mageia 6 (6):Mageia12:linux
/dev/sde9:Mageia 6 (6):Mageia13:linux

real	2m12.826s

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.12-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.12-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-4.9.11-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.11-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-4.9.11-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.11-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde31
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	8m0.555s
Comment 53 Marja Van Waes 2017-03-05 10:20:10 CET
(In reply to ben mcmonagle from comment #52)
> updated system to latest
> Cinnamon only install from sta2 x86_64.iso


Is this bug still valid for the newest 6sta2 isos?

Summary: [6sta1] UEFI x86-64 install takes about 15 min to install bootloader, Live and Classical Installer => UEFI x86-64 install takes about 15 min to install bootloader, Live and Classical Installer
Keywords: 6sta1 => 6sta2

Thomas Andrews 2017-03-05 13:45:00 CET

CC: andrewsfarm => (none)

Comment 54 Ben McMonagle 2017-03-06 06:19:21 CET
(In reply to Marja van Waes from comment #53)
> (In reply to ben mcmonagle from comment #52)
> > updated system to latest
> > Cinnamon only install from sta2 x86_64.iso
> 
> 
> Is this bug still valid for the newest 6sta2 isos?

 yes :(
Comment 55 Barry Jackson 2017-03-07 20:27:46 CET
(In reply to ben mcmonagle from comment #54)
> (In reply to Marja van Waes from comment #53)
> > (In reply to ben mcmonagle from comment #52)
> > > updated system to latest
> > > Cinnamon only install from sta2 x86_64.iso
> > 
> > 
> > Is this bug still valid for the newest 6sta2 isos?
> 
>  yes :(

What is the timing with the current 1.74-3 for comparison with the others?
Comment 56 Ben McMonagle 2017-03-08 08:10:26 CET
(In reply to Barry Jackson from comment #55)
> 
> What is the timing with the current 1.74-3 for comparison with the others?

# urpmf -f --name -m os-prober
os-prober-1.74-2.mga6.x86_64

# time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde19:Mageia 6 (6):Mageia5:linux
/dev/sde27:Mageia 6 (6):Mageia6:linux
/dev/sde29:Mageia 6 (6):Mageia7:linux
/dev/sde3:Mageia 6 (6):Mageia8:linux
/dev/sde37:Mageia 6 (6):Mageia9:linux
/dev/sde39:Mageia 5 (5):Mageia10:linux
/dev/sde41:Mageia 5 (5):Mageia11:linux
/dev/sde5:Mageia 6 (6):Mageia12:linux
/dev/sde7:Mageia 6 (6):Mageia13:linux
/dev/sde9:Mageia 6 (6):Mageia14:linux

real	1m53.166s

# urpmf -f --name -m grub2
grub2-common-2.02-0.git10463.5.mga6.x86_64
grub2-2.02-0.git10463.5.mga6.x86_64
grub2-efi-2.02-0.git10463.5.mga6.x86_64
grub2-mageia-theme-2.02-0.git10463.5.mga6


# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.13-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.13-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde19
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	8m47.720s


update system


# urpmf -f --name -m os-prober
os-prober-1.74-3.mga6.x86_64:Core Release (distrib1)
os-prober-1.74-3.mga6.i586:Core 32bit Release (distrib31)
[root@localhost ~]# time os-prober
/dev/sdc3:Mageia 5 (5):Mageia:linux
/dev/sde11:Mageia 6 (6):Mageia1:linux
/dev/sde13:Mageia 6 (6):Mageia2:linux
/dev/sde15:Mageia 6 (6):Mageia3:linux
/dev/sde17:Mageia 6 (6):Mageia4:linux
/dev/sde19:Mageia 6 (6):Mageia5:linux
/dev/sde27:Mageia 6 (6):Mageia6:linux
/dev/sde29:Mageia 6 (6):Mageia7:linux
/dev/sde3:Mageia 6 (6):Mageia8:linux
/dev/sde37:Mageia 6 (6):Mageia9:linux
/dev/sde39:Mageia 5 (5):Mageia10:linux
/dev/sde41:Mageia 5 (5):Mageia11:linux
/dev/sde5:Mageia 6 (6):Mageia12:linux
/dev/sde7:Mageia 6 (6):Mageia13:linux
/dev/sde9:Mageia 6 (6):Mageia14:linux

real	1m58.174s

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.13-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.13-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-4.9.13-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.13-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Mageia 5 (5) on /dev/sdc3
Found Mageia 6 (6) on /dev/sde11
Found Mageia 6 (6) on /dev/sde13
Found Mageia 6 (6) on /dev/sde15
Found Mageia 6 (6) on /dev/sde17
Found Mageia 6 (6) on /dev/sde19
Found Mageia 6 (6) on /dev/sde27
Found Mageia 6 (6) on /dev/sde29
Found Mageia 6 (6) on /dev/sde3
Found Mageia 6 (6) on /dev/sde37
Found Mageia 5 (5) on /dev/sde39
Found Mageia 5 (5) on /dev/sde41
Found Mageia 6 (6) on /dev/sde5
Found Mageia 6 (6) on /dev/sde7
Found Mageia 6 (6) on /dev/sde9
done

real	8m32.838s
Comment 57 Thierry Vignaud 2017-03-08 08:24:27 CET
Hum...
os-prober used to dominate grub2 runtime.
Can you try 2 things?
1) run update2-grub under strace:
strace -rTf -e file,process /bin/update-grub2 &>/tmp/strace-grub2.txt
Then attach the resulting /tmp/strace-grub2.txt file here

2) Run grub2 after disabling os-prober
set GRUB_DISABLE_OS_PROBER=true in /etc/default/grub
Then time update-grub2
Comment 58 Ben McMonagle 2017-03-08 10:11:06 CET
(In reply to Thierry Vignaud from comment #57)
> Hum...
> os-prober used to dominate grub2 runtime.
> Can you try 2 things?
> 1) run update2-grub under strace:
> strace -rTf -e file,process /bin/update-grub2 &>/tmp/strace-grub2.txt
> Then attach the resulting /tmp/strace-grub2.txt file here

strace-grub2.txt is greater than 1GB
strace-grub2.zip is greater than 61MB
strace-grub2.tar.xz is greater than 40MB

too large to attach.

Can I e-mail it to you?

> 2) Run grub2 after disabling os-prober
> set GRUB_DISABLE_OS_PROBER=true in /etc/default/grub
> Then time update-grub2

# time update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.9.13-desktop-2.mga6
Found initrd image: /boot/initrd-4.9.13-desktop-2.mga6.img
Found linux image: /boot/vmlinuz-4.9.13-desktop-1.mga6
Found initrd image: /boot/initrd-4.9.13-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
done

real	1m0.722s


This is a similar time if I "rescue" the system and re-install the bootloader
Comment 59 Ben McMonagle 2017-03-08 10:14:18 CET
(In reply to ben mcmonagle from comment #58)

> 
> 
> This is a similar time if I "rescue" the system and re-install the bootloader

except that all system partitions are identified and added to the grub2 menu
Comment 60 Thierry Vignaud 2017-03-08 11:06:22 CET
yes, you can mail the logs to me or upload it to some file sharing service.
Note that on mga, you can compress it further by using "xz -9 --text"

I wonder what is doing update-grub2 (really grub2-mkconfig) when it runs os-prober on your system....
Comment 61 Lewis Smith 2017-03-08 20:38:50 CET
M6_STA2 up to date 8 March 2017.
16 disc partitions, 9 OS's.

os-prober: 1.74.3
grub2-efi: 2.02.0

os-prober took 21s
update-grub took 2m26s
both very much faster than the 'old' 10m for each.
Martin Whitaker 2017-05-03 10:10:50 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=20777

Comment 62 Morgan Leijström 2020-07-13 12:01:48 CEST
I suppose it is solved by now
If not please reopen and state version

Status: NEW => RESOLVED
CC: (none) => fri
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.