• Re: os-prober not detecting distros mounting ESP as /boot

    From Pascal Hambourg@21:1/5 to Avid Seeker on Mon May 29 09:10:01 2023
    On 29/05/2023 at 08:17, Avid Seeker wrote:
    I'm dual booting two distros that mount ESP as /boot instead of /boot/efi.

    It seems to me that os-prober works by checking every partition for /boot, and so if it finds it empty, it doesn't consider it an OS. So when I run os-prober from either distro, the other one is not detected.

    AFAIK os-prober does not look into /boot, it looks for specific files in
    /lib and /etc (with an issue with separate merged /usr). Only
    linux-boot-prober looks looks for kernel and initrd/initramfs images in
    /boot (after mounting it according to /etc/fstab if separate).

    What is the layout of either distro (mount points, /boot contents) ?
    What is the output of os-prober ?
    What is the output of linux-boot-prober /dev/<other-distro_rootfs> ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Avid Seeker@21:1/5 to All on Mon May 29 08:40:01 2023
    I'm dual booting two distros that mount ESP as /boot instead of /boot/efi.

    It seems to me that os-prober works by checking every partition for /boot, and so if it finds it empty, it doesn't consider it an OS. So when I run os-prober from either distro, the other one is not detected.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pascal Hambourg@21:1/5 to Avid Seeker on Tue May 30 20:00:02 2023
    On 30/05/2023 at 03:53, Avid Seeker wrote:
    1) Layout:
    /dev/sda1: ESP

    and in both distros /boot is the mount point of ESP.

    I expected a much more detailed description.
    - Full partition layout and use
    - Full contents of the ESP

    So technically no content on /boot if ESP not mounted.

    As I wrote previously, os-prober does not care about /boot and linux-boot-prober can mount it so it does not matter that /boot is separate.

    2) os-prober outputs empty string
    3) linux-boot-prober outputs empty string

    Please post the full commands.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)