30_os-prober- 30_os-prober:if ! command -v os-prober > /dev/null || ! command -v linux-boot-prober > /dev/null ; then 30_os-prober: # missing os-prober and/or linux-boot-prober 30_os-prober- exit 0 -- 30_os-prober-if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then 30_os-prober: grub_warn "$(gettext_printf "os-prober will not be executed to detect other bootable partitions.\nSystems on them will not be added to the GRUB boot configuration.\nCheck GRUB_DISABLE_OS_PROBER documentation entry.")" 30_os-prober- exit 0 -- 30_os-prober- 30_os-prober:grub_warn "$(gettext_printf "os-prober will be executed to detect other bootable partitions.\nIts output will be used to detect bootable binaries on them and create new boot entries.")" 30_os-prober- 30_os-prober:OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`" 30_os-prober-if [ -z "${OSPROBED}" ] ; then 30_os-prober: # empty os-prober output, nothing doing 30_os-prober- exit 0 -- 30_os-prober- 30_os-prober: # os-prober returns text string followed by optional counter 30_os-prober- CLASS="--class $(echo "${LABEL}" | LC_ALL=C sed 's,[[:digit:]]*$,,' | cut -d' ' -f1 | tr 'A-Z' 'a-z' | LC_ALL=C sed 's,[^[:alnum:]_],_,g')"