os-prober

utility to detect other OSes on a set of drives

Debian Debian
RUN apt-get update && \ apt-get install -y os-prober
Ubuntu
RUN apt-get update && \ apt-get install -y os-prober
Arch Arch Linux
RUN pacman -S --noconfirm os-prober
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y os-prober
CentOS
RUN yum install -y os-prober
Fedora
RUN dnf install -y os-prober
Raspbian
RUN apt-get update && \ apt-get install -y os-prober
click the source code to copy install os-prober on any operating system with command-not-found.com