diff -Nur debian.old/patches/bsd.diff debian/patches/bsd.diff --- debian.old/patches/bsd.diff 1970-01-01 00:00:00.000000000 +0000 +++ debian/patches/bsd.diff 2015-12-10 05:03:55.000000000 +0000 @@ -0,0 +1,24 @@ +Index: grub2-2.02~beta2/util/grub.d/10_kfreebsd.in +=================================================================== +--- grub2-2.02~beta2.orig/util/grub.d/10_kfreebsd.in ++++ grub2-2.02~beta2/util/grub.d/10_kfreebsd.in +@@ -32,6 +32,10 @@ case "${GRUB_DISTRIBUTOR}" in + OS="${GRUB_DISTRIBUTOR} GNU/kFreeBSD" + CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') --class gnu-kfreebsd --class gnu ${CLASS}" + ;; ++ Ubuntu) ++ OS="ubuntuBSD" ++ CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') --class gnu-kfreebsd --class gnu ${CLASS}" ++ ;; + *) + OS="FreeBSD" + CLASS="--class freebsd --class bsd ${CLASS}" +@@ -187,7 +191,7 @@ while [ "x$list" != "x" ] ; do + kfreebsd_device=${kfreebsd_fs}id/${GRUB_DEVICE_UUID} + # Debian GNU/kFreeBSD can't remount root if it's supplied as UUID but + # as an UUID +- if [ "x${GRUB_DISTRIBUTOR}" = "xDebian" ] \ ++ if [ "x${GRUB_DISTRIBUTOR}" = "xDebian" ] || [ "x${GRUB_DISTRIBUTOR}" = "xUbuntu" ] \ + && ! (cat /etc/fstab | awk '!/^[[:space:]]*#/ && $2=="/" { print $1; }' \ + | grep "${kfreebsd_fs}id/${GRUB_DEVICE_UUID}" > /dev/null); then + kfreebsd_device=${GRUB_DEVICE} diff -Nur debian.old/patches/series debian/patches/series --- debian.old/patches/series 2015-10-13 22:36:34.000000000 +0000 +++ debian/patches/series 2015-12-10 05:03:37.000000000 +0000 @@ -74,3 +74,4 @@ ppc64el-avoid_unnecessary_optimizations.patch arm64-set-correct-length-of-device-path-end-entry.patch progress_avoid_null_deref.patch +bsd.diff