Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-28-2014, 05:44 AM   #1
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.0, MX-18
Posts: 4,260

Rep: Reputation: Disabled
GRUB2 os-prober resulting script: where to find an explanation?

GRUB2's os-prober nicely finds OSs (some, no FreeBSD on ufs2) and generates a lengthy grub.cfg. Fine, but I don't understand that much scripting yet. Excerpts:

if [ x$feature_default_font_path = xy ] ; then
  insmod part_msdos
  insmod ext2
  set root='hd0,msdos5'
  if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5   --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  a13e1c0f-c157-4ee5-a1c3-67a39ebe01d1
   search --no-floppy --fs-uuid --set=root a13e1c0f-c157-4ee5-a1c3-67a39ebe01d1
Here, in particular the lengthy if-statement is obscure, I did not find references for many parameters in the GRUB2 documentation.

Same here, where I at least understand that SuSE will be started but the details again are elusive:

menuentry 'openSUSE 12.3 (on /dev/sda5)' --class 'opensuse-12-3' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a13e1c0f-c157-4ee5-a1c3-67a39ebe01d1'{
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  e8b9e1af-e836-4332-8446-d149a0c68d40
      search --no-floppy --fs-uuid --set=root e8b9e1af-e836-4332-8446-d149a0c68d40
    echo 'Loading Linux 3.7.10-1.16-desktop ...'
    linux /vmlinuz-3.7.10-1.16-desktop root=UUID=a13e1c0f-c157-4ee5-a1c3-67a39ebe01d1  showopts video=1366x768 resume=/dev/disk/by-id/ata-WDC_WD3200BPVT-22JJ5T0_WD-WXU1CB1S5967-part3 nosplash noquiet
    echo 'Loading initial ramdisk ...'
    initrd     /initrd-3.7.10-1.16-desktop
Any pointers to a detailed step by step description would be appreciated .

Last edited by JZL240I-U; 04-28-2014 at 07:57 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Booting LFS with os-prober + grub2. ReaperX7 Linux From Scratch 9 04-30-2014 02:32 AM
I need a tutorial/explanation for this script gbao256 Linux - Newbie 9 03-04-2013 12:02 PM
grub2 , does not find the windows XP ... Xeratul Linux - General 1 12-05-2010 05:08 PM
need annotated explanation of the script !! ruchika_sachdeva Linux - Newbie 4 05-19-2010 08:23 AM
Problems with dual boot, grub2 auto os prober mhbell Ubuntu 2 11-04-2009 11:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration