diff --git a/system/boot/grub2/actions.py b/system/boot/grub2/actions.py
index 876e0681..de4549be 100644
--- a/system/boot/grub2/actions.py
+++ b/system/boot/grub2/actions.py
@@ -13,7 +13,6 @@ from pisi.actionsapi import shelltools
def setup():
-
shelltools.copy("../unifont*.bdf", "./unifont.bdf")
#shelltools.export("GRUB_CONTRIB", "%s/grub-2.06/grub-extras" % (get.workDIR()))
@@ -21,10 +20,13 @@ def setup():
pisitools.cflags.sub("\s?(-O[\ds]|-D_FORTIFY_SOURCE=\d)\s?", " ")
#pisitools.dosed('util/grub-mkconfig.in', 'GRUB_DISABLE_OS_PROBER="true"', 'GRUB_DISABLE_OS_PROBER="false"')
- shelltools.system("./linguas.sh")
- shelltools.system("./bootstrap")
- shelltools.system('echo "Make translations reproducible..."')
- shelltools.system("sed -i '1i /^PO-Revision-Date:/ d' po/*.sed")
+ #shelltools.system("./linguas.sh")
+ #shelltools.system("./bootstrap")
+ #shelltools.system('echo "Make translations reproducible..."')
+ #shelltools.system("sed -i '1i /^PO-Revision-Date:/ d' po/*.sed")
+ shelltools.copytree("../grub-%s" % (get.srcVERSION().replace("_", "~")), "../grub-%s-efi" % get.srcVERSION())
+
+ autotools.autoreconf("-fi")
autotools.configure("--disable-werror \
--with-bootdir='/boot' \
@@ -34,11 +36,12 @@ def setup():
--with-platform=pc \
--target='i386' \
--htmldir='/usr/share/doc/grub2/html' ")
-
-
- shelltools.copytree("../grub-%s" % (get.srcVERSION().replace("_", "~")), "../grub-%s-efi" % get.srcVERSION())
+
+
shelltools.cd("../grub-%s-efi" % get.srcVERSION())
- shelltools.system("./bootstrap")
+ #shelltools.system("./autogen.sh")
+
+ autotools.autoreconf("-fi")
autotools.configure("--disable-werror \
--with-bootdir='/boot' \
--with-grubdir=grub2 \
@@ -47,27 +50,27 @@ def setup():
--with-platform=efi \
--target=x86_64 \
--htmldir='/usr/share/doc/grub2/html' ")
-
-
+
+
shelltools.cd("..")
-
+
def build():
#make-dist for creating all updated translation files
#autotools.make("dist")
autotools.make()
-
+
shelltools.cd("../grub-%s-efi" % get.srcVERSION())
autotools.make()
shelltools.cd("..")
def install():
- # Install unicode.pf2 using downloaded font source.
+ # Install unicode.pf2 using downloaded font source.
#shelltools.system("./grub-mkfont -o unicode.pf2 unifont.bdf")
# Create directory for grub.cfg file
#pisitools.dodir("/boot/grub2")
-
+
#pisitools.insinto("/boot/grub2", "unicode.pf2")
# Insall our theme
diff --git a/system/boot/grub2/files/grub-mkconfig.patch b/system/boot/grub2/files/grub-mkconfig.patch
new file mode 100644
index 00000000..eecb1d80
--- /dev/null
+++ b/system/boot/grub2/files/grub-mkconfig.patch
@@ -0,0 +1,12 @@
+diff -Nuar a/util/grub-mkconfig.in b/util/grub-mkconfig.in
+--- a/util/grub-mkconfig.in 2022-09-01 22:32:28.455672599 +0300
++++ b/util/grub-mkconfig.in 2022-09-01 22:32:49.527671079 +0300
+@@ -1,6 +1,8 @@
+ #! /bin/sh
+ set -e
+
++export LC_ALL=C
++
+ # Generate grub.cfg by inspecting /boot contents.
+ # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
+ #
diff --git a/system/boot/grub2/files/update-grub b/system/boot/grub2/files/update-grub
index 02e7d32a..8834e52d 100644
--- a/system/boot/grub2/files/update-grub
+++ b/system/boot/grub2/files/update-grub
@@ -1,3 +1,3 @@
#! /bin/sh
-export LC_ALL=C
+# export LC_ALL=C
grub2-mkconfig -o /boot/grub2/grub.cfg
diff --git a/system/boot/grub2/pspec.xml b/system/boot/grub2/pspec.xml
index 16ad6e2a..c6c31ff9 100644
--- a/system/boot/grub2/pspec.xml
+++ b/system/boot/grub2/pspec.xml
@@ -12,7 +12,7 @@
app:gui
GNU GRUB is a Multiboot boot loader.
GNU GRUB (short for GNU GRand Unified Bootloader) is a boot loader package from the GNU Project.
- https://sourceforge.net/projects/pisilinux/files/source/grub-2.06.zip
+ https://ftp.gnu.org/gnu/grub/grub-2.06.tar.xz
https://ftp.gnu.org/gnu/unifont/unifont-13.0.06/unifont-13.0.06.bdf.gz
@@ -44,9 +44,9 @@
grub
- gfxpayload.patch -->
- grub-2.02_beta2-KERNEL_GLOBS.patch -->
-
+ gfxpayload.patch
+ grub-2.02_beta2-KERNEL_GLOBS.patch
+ grub-mkconfig.patch
pisi_name_and_initramfs.patch
grub-2.06-test-words.patch
@@ -112,7 +112,7 @@
- 2022-08-13
+ 2022-09-02
2.06
Rebuild.
Mustafa Cinasal