diff -ru grub.d.old/00_header grub.d.new/00_header --- grub.d.old/00_header 2014-05-15 19:02:12.000000000 +0000 +++ grub.d.new/00_header 2015-01-07 09:24:54.670834591 +0000 @@ -106,18 +106,36 @@ function recordfail { set recordfail=1 EOF + skip_recordfail= FS="$(grub-probe --target=fs "${grubdir}")" case "$FS" in btrfs | cpiofs | newc | odc | romfs | squash4 | tarfs | zfs) + skip_recordfail=$FS + ;; + *) + ABSTRACTION="$(grub-probe --target=abstraction "${grubdir}")" + for check_abstraction in lvm ; do + case "$ABSTRACTION" in + "$check_abstraction" | \ + "$check_abstraction "* | \ + *" $check_abstraction" | \ + *" $check_abstraction "*) + skip_recordfail=$check_abstraction + break + ;; + esac + done + ;; + esac + if [ -n "$skip_recordfail" ]; then cat <