From b75364070c802cf9033a4576011c1487701b3bee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= <ruben@trisquel.info>
Date: Sun, 16 Nov 2014 20:58:36 +0100
Subject: [PATCH] grub2: Allow Windows and MacOX entries to boot without a
 password

---
 helpers/make-grub2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/helpers/make-grub2 b/helpers/make-grub2
index 20e4f583..81d07e0d 100644
--- a/helpers/make-grub2
+++ b/helpers/make-grub2
@@ -17,7 +17,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=4
+VERSION=5
 COMPONENT=main
 
 . ./config
@@ -57,6 +57,9 @@ echo /bin/sed "/GNU GRUB  version/ s/PACKAGE_VERSION/\"$GRUBVERSION\"/" -i grub-
 changelog "Disable rescue mode by default, branding"
 #sed "s/-.*)/-${REVISION}trisquel${VERSION})/" -i debian/changelog
 
+# Allow Windows and MacOX entries to boot without a password
+sed 's/class osx/class osx --unrestricted/; s/class windows/class osx --unrestricted/;' -i ./util/grub.d/30_os-prober.in
+
 #apt-get install -y --force-yes kvm-pxe
 # /dev is needed for KVM support
 #mount none -t devtmpfs /dev || true
-- 
GitLab