On Mon, 15 May 2017 21:43:19 +0300 Andrei Borzenkov
15.05.2017 20:06, Stephen Berman пишет:
I have a computer with two hard disks, on one of which both openSUSE 42.2 and 13.2 are installed and on the other a different GNU/Linux system (Linux From Scratch); on booting, the grub2 boot screen (which comes from os42.2) showed all three systems -- till yesterday, after I updated os42.2 for the first time in around a week; after rebooting only os42.2 and os13.2 were listed on the boot screen. I also manually ran `grub2-mkconfig -o /boot/grub2/grub.cfg' from os42.2 and the output also showed just the two openSUSE systems. I noticed that among yesterday's updates were grub2 and os-prober, presumably grub2-2.02~beta2-94.3.1.x86_64.rpm from 08-May-2017 and os-prober-1.61-20.3.1.x86_64.rpm from 06-May-2017. Has anyone else run into this problem? Could either of those updates have caused it?
Well, this is likely os-prober then. Run
START=$(date +%s) os-prober journalctl --since=@$START
and post output.
FTR attached, though it's now clear what went wrong. The output shows that /usr/lib/os-probes/mounted/90linux-distro does not recognize /dev/sda5, which is the root of my LFS system, as a linux system, unlike /dev/sdb6, which it correctly recognizes as openSUSE 13.2. And the reason is that 90linux-distro runs this check: elif [ -e "$dir/etc/lfs-release" ]; then short="LFS" long="$(printf "Linux From Scratch (%s)\n" "$(cat "$dir/etc/lfs-release")")" My LFS system does not have this file (the LFS build instructions recommend but do not require it; however, I did try to follow not just the LFS requirements but also the recommendations, and don't remember deciding not to install that file, so I don't know if this was an oversight or it got deleted by mistake at some point). But prior to the os-prober update it seems a different check was run, because the LFS system was recognized but listed as "unknown Linux distribution"; this fallback now seems to be missing. That seems problematic, since 90linux-distro cannot list all possible Linux-based installations (someone could e.g. just invent a name, or choose not to use any). Steve Berman