From 1bac5fc9a5d8c4568a51947e599872ad18689938 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Sun, 25 Dec 2022 09:54:00 -0500
Subject: [PATCH] ubiquity: Only warn about missing efi partition when running
 on efi mode

---
 helpers/make-ubiquity | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/helpers/make-ubiquity b/helpers/make-ubiquity
index 03cb1c8cb..cad3e5144 100644
--- a/helpers/make-ubiquity
+++ b/helpers/make-ubiquity
@@ -18,7 +18,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=28
+VERSION=29
 
 . ./config
 
@@ -302,9 +302,12 @@ sed '/Package: ubiquity-frontend-kde/,/Depends/s/Depends:/Depends: libkf5kdelibs
 sed 's/Trisquel/Trsql/' -i ubiquity/plugins/ubi-partman.py
 sed 's/Trisquel-Battersea/Ubuntu-Battersea/' -i  tests/test_gtkwidgets.py
 
-#Remove ubuntu-artwork dependency
+# Remove ubuntu-artwork dependency
 sed -i '/ubuntu-artwork,/d' debian/control
 
+# Only warn about missing efi partition when running on efi mode
+sed 's|/var/lib/partman/efi|/sys/firmware/efi|' -i d-i/source/partman-efi/check.d/efi
+
 changelog "Adapted for Trisquel"
 
 rm -rf debian/source
-- 
GitLab