[Bug 811006] New: os-prober in grub2 does not look inside MD arrays
cat fstab LABEL=root / ext4 acl,user_xattr 1 1 LABEL=swap2 swap swap defaults 0 0 /dev/disk/by-id/ata-ST1000DM003-9YN162_S1D069EC-part1 swap swap defaults 0 0 LABEL=home /home ext4 acl,user_xattr 1 2 LABEL=xtracon /mnt/backcron ext4 acl,user_xattr 1 2 LABEL=PalaliDisk /mnt/palali ntfs-3g users,gid=users,fmask=113,dmask=002,locale=en_US.UTF-8 0 0 LABEL=newraid /mnt/newraid ext4 acl,user_xattr 1 2
https://bugzilla.novell.com/show_bug.cgi?id=811006 https://bugzilla.novell.com/show_bug.cgi?id=811006#c0 Summary: os-prober in grub2 does not look inside MD arrays Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: grglsn765@gmail.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 I have openSUSE 12.2 installed on an md array. After installing openSUSE 12.3 from an install DVD on a separate md array and rebooting, the earlier 12.2 system does not show up in the list of options in the grub2 boot menu. Apparently os-prober does not detect operating systems inside RAID arrays. The array in question is /dev/md0 and has metadata=1.0. I am able to mount the array and read the data from my running operating system in 12.3, but it just doesn't show up in the boot menu. There is an earlier openSUSE 12.1 system on a separate partition that is not RAIDed, and this one does show up as a boot option on the grub2 boot menu. These are the RAID arrays: ~> cat /proc/mdstat Personalities : [raid1] [raid0] [raid10] [raid6] [raid5] [raid4] md3 : active raid1 sdb7[0] sda7[2] 446428024 blocks super 1.2 [2/2] [UU] md1 : active raid1 sdb3[2] sda3[1] 465306488 blocks super 1.0 [2/2] [UU] md0 : active (auto-read-only) raid1 sdb2[2] sda2[1] 20973496 blocks super 1.0 [2/2] [UU] md2 : active raid1 sda5[2] sdb5[0] 20971448 blocks super 1.0 [2/2] [UU] unused devices: <none> Here is the output of blkid: # blkid /dev/sda6: UUID="dbdfa465-ff1c-450a-b036-6734e99a05c9" TYPE="ext4" /dev/sdb6: LABEL="roottemp" UUID="bf0cd224-28c4-4f17-9f89-fadaf0d9af4c" TYPE="ext4" /dev/sda1: LABEL="swap2" UUID="3ac88422-c12c-40f5-a6e4-874ad432a07f" TYPE="swap" /dev/sda2: UUID="e96a14ed-bc7c-8d5a-9b0c-114a9e208631" UUID_SUB="35ce847f-6cf8-44a7-9d08-5a00cecf0301" LABEL="linux-aw90:0" TYPE="linux_raid_member" /dev/sda3: UUID="cdfe9dc0-73d6-f7cb-7dda-2c20e3758f4f" UUID_SUB="00e8175c-8959-3a73-ad0d-92c2f8f5f6fe" LABEL="linux-aw90:1" TYPE="linux_raid_member" /dev/sda5: UUID="9e211746-3189-6532-b4f8-6782184e93f7" UUID_SUB="eb09d244-1415-3e3f-4632-e4c9406b9d8a" LABEL="linux-aw90:2" TYPE="linux_raid_member" /dev/sda7: UUID="624e4f11-9d02-a346-29b5-54e5bd7063d4" UUID_SUB="6c55df99-aeb1-06bb-2cd9-d1e15e430f21" LABEL="linux-aw90:3" TYPE="linux_raid_member" /dev/sdb1: LABEL="swap1" UUID="24628362-ac3a-4e36-8a54-20552712175c" TYPE="swap" /dev/sdb2: UUID="e96a14ed-bc7c-8d5a-9b0c-114a9e208631" UUID_SUB="659830c6-b807-6d53-3682-a4d9106be2a9" LABEL="linux-aw90:0" TYPE="linux_raid_member" /dev/sdb3: UUID="cdfe9dc0-73d6-f7cb-7dda-2c20e3758f4f" UUID_SUB="db119b46-eea8-fe09-997e-5dff85d9b677" LABEL="linux-aw90:1" TYPE="linux_raid_member" /dev/sdb5: UUID="9e211746-3189-6532-b4f8-6782184e93f7" UUID_SUB="7f7d8111-ac5f-43bb-dcab-473ef8185cff" LABEL="linux-aw90:2" TYPE="linux_raid_member" /dev/sdb7: UUID="624e4f11-9d02-a346-29b5-54e5bd7063d4" UUID_SUB="775bfd03-e172-2959-d19e-90e97f4dad6d" LABEL="linux-aw90:3" TYPE="linux_raid_member" /dev/sdc1: LABEL="PalaliDisk" UUID="24E079F8E079D112" TYPE="ntfs" /dev/sdc2: LABEL="xtracon" UUID="e51f5b73-9511-48cb-a732-a8de86fc4c33" TYPE="ext4" /dev/md2: LABEL="root123" UUID="b78c7882-6315-4a49-8c10-e0bd7774a8c2" TYPE="ext4" /dev/md0: LABEL="root" UUID="f19df9f9-8339-44fb-b398-ffe2298ce9e9" TYPE="ext4" /dev/md1: LABEL="home" UUID="3e4b59cb-36d6-4e40-845d-f11c365a9fba" TYPE="ext4" /dev/md3: LABEL="newraid" UUID="36acfa6a-c183-4c43-ac49-4932ea14207d" TYPE="ext4" /dev/md0 is the RAID drive that holds 12.2. /dev/md2 is the raid drive that holds 12.3. HERE is the /etc/fstab file from my 12.2 installation: proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 HERE is the /boot/grub2/grub.cfg file from my 12.2 installation: # cat grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default="${saved_entry}" if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod ext2 set root='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' f19df9f9-8339-44fb-b398-ffe2298ce9e9 else search --no-floppy --fs-uuid --set=root f19df9f9-8339-44fb-b398-ffe2298ce9e9 fi font="/usr/share/grub2/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_US insmod gettext fi terminal_output gfxterm insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod ext2 set root='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' f19df9f9-8339-44fb-b398-ffe2298ce9e9 else search --no-floppy --fs-uuid --set=root f19df9f9-8339-44fb-b398-ffe2298ce9e9 fi insmod gfxmenu loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2 loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2 loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2 loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2 insmod png set theme=($root)/boot/grub2/themes/openSUSE/theme.txt export theme if [ x${boot_once} = xtrue ]; then set timeout=0 elif sleep --interruptible 0 ; then set timeout=8 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'openSUSE' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f19df9f9-8339-44fb-b398-ffe2298ce9e9' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod ext2 set root='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' f19df9f9-8339-44fb-b398-ffe2298ce9e9 else search --no-floppy --fs-uuid --set=root f19df9f9-8339-44fb-b398-ffe2298ce9e9 fi echo 'Loading Linux 3.4.33-2.24-desktop ...' linux /boot/vmlinuz-3.4.33-2.24-desktop root=UUID=f19df9f9-8339-44fb-b398-ffe2298ce9e9 video=1600x900 resume=/dev/disk/by-label/swap2 splash=silent quiet showopts echo 'Loading initial ramdisk ...' initrd /boot/initrd-3.4.33-2.24-desktop } submenu 'Advanced options for openSUSE' $menuentry_id_option 'gnulinux-advanced-f19df9f9-8339-44fb-b398-ffe2298ce9e9' { menuentry 'openSUSE, with Linux 3.4.33-2.24-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.33-2.24-desktop-advanced-f19df9f9-8339-44fb-b398-ffe2298ce9e9' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod ext2 set root='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' f19df9f9-8339-44fb-b398-ffe2298ce9e9 else search --no-floppy --fs-uuid --set=root f19df9f9-8339-44fb-b398-ffe2298ce9e9 fi echo 'Loading Linux 3.4.33-2.24-desktop ...' linux /boot/vmlinuz-3.4.33-2.24-desktop root=UUID=f19df9f9-8339-44fb-b398-ffe2298ce9e9 video=1600x900 resume=/dev/disk/by-label/swap2 splash=silent quiet showopts echo 'Loading initial ramdisk ...' initrd /boot/initrd-3.4.33-2.24-desktop } menuentry 'openSUSE, with Linux 3.4.33-2.24-desktop (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.33-2.24-desktop-recovery-f19df9f9-8339-44fb-b398-ffe2298ce9e9' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod ext2 set root='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='mduuid/e96a14edbc7c8d5a9b0c114a9e208631' f19df9f9-8339-44fb-b398-ffe2298ce9e9 else search --no-floppy --fs-uuid --set=root f19df9f9-8339-44fb-b398-ffe2298ce9e9 fi echo 'Loading Linux 3.4.33-2.24-desktop ...' linux /boot/vmlinuz-3.4.33-2.24-desktop root=UUID=f19df9f9-8339-44fb-b398-ffe2298ce9e9 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe echo 'Loading initial ramdisk ...' initrd /boot/initrd-3.4.33-2.24-desktop } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_ppc_terminfo ### ### END /etc/grub.d/20_ppc_terminfo ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'openSUSE 12.1 (x86_64)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-bf0cd224-28c4-4f17-9f89-fadaf0d9af4c' { insmod part_msdos insmod ext2 set root='hd1,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6 --hint='hd1,msdos6' bf0cd224-28c4-4f17-9f89-fadaf0d9af4c else search --no-floppy --fs-uuid --set=root bf0cd224-28c4-4f17-9f89-fadaf0d9af4c fi linux /boot/vmlinuz-3.1.0-1.2-desktop root=/dev/disk/by-label/roottemp resume=/dev/disk/by-label/swap1 splash=silent quiet showopts vga=0x317 initrd /boot/initrd-3.1.0-1.2-desktop } submenu 'Advanced options for openSUSE 12.1 (x86_64)' $menuentry_id_option 'osprober-gnulinux-advanced-bf0cd224-28c4-4f17-9f89-fadaf0d9af4c' { menuentry 'Desktop -- openSUSE 12.1 - 3.1.0-1.2 (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.1.0-1.2-desktop--bf0cd224-28c4-4f17-9f89-fadaf0d9af4c' { insmod part_msdos insmod ext2 set root='hd1,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6 --hint='hd1,msdos6' bf0cd224-28c4-4f17-9f89-fadaf0d9af4c else search --no-floppy --fs-uuid --set=root bf0cd224-28c4-4f17-9f89-fadaf0d9af4c fi linux /boot/vmlinuz-3.1.0-1.2-desktop root=/dev/disk/by-label/roottemp resume=/dev/disk/by-label/swap1 splash=silent quiet showopts vga=0x317 initrd /boot/initrd-3.1.0-1.2-desktop } menuentry 'Failsafe -- openSUSE 12.1 - 3.1.0-1.2 (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.1.0-1.2-desktop--bf0cd224-28c4-4f17-9f89-fadaf0d9af4c' { insmod part_msdos insmod ext2 set root='hd1,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6 --hint='hd1,msdos6' bf0cd224-28c4-4f17-9f89-fadaf0d9af4c else search --no-floppy --fs-uuid --set=root bf0cd224-28c4-4f17-9f89-fadaf0d9af4c fi linux /boot/vmlinuz-3.1.0-1.2-desktop root=/dev/disk/by-label/roottemp showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317 initrd /boot/initrd-3.1.0-1.2-desktop } } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### ### BEGIN /etc/grub.d/90_persistent ### ### END /etc/grub.d/90_persistent ### Reproducible: Always Steps to Reproduce: 1. reboot computer 2. look at boot menu 3. operating system loaded on MD array is not in the boot menu Actual Results: same Expected Results: same -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811006
https://bugzilla.novell.com/show_bug.cgi?id=811006#c
Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=811006
https://bugzilla.novell.com/show_bug.cgi?id=811006#c1
Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=811006
https://bugzilla.novell.com/show_bug.cgi?id=811006#c2
--- Comment #2 from George Olson
https://bugzilla.novell.com/show_bug.cgi?id=811006
https://bugzilla.novell.com/show_bug.cgi?id=811006#c3
Günther J. Niederwimmer
https://bugzilla.novell.com/show_bug.cgi?id=811006
https://bugzilla.novell.com/show_bug.cgi?id=811006#c4
--- Comment #4 from Günther J. Niederwimmer
https://bugzilla.novell.com/show_bug.cgi?id=811006
https://bugzilla.novell.com/show_bug.cgi?id=811006#c5
--- Comment #5 from Andrey Borzenkov
I have the Problem on a EFI System the os-prober tell me nothing :(. Please open a separate bug report, indicate openSUSE version you are running, explain your problem (which other operating systems you have, what is found and what is not found) and attach your log there.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811006
https://bugzilla.novell.com/show_bug.cgi?id=811006#c6
Andrey Borzenkov
participants (1)
-
bugzilla_noreply@novell.com