Compare commits
3 Commits
2.12-3mamb
...
main
Author | SHA1 | Date | |
---|---|---|---|
a7bf2864c9 | |||
fc104cf426 | |||
eeca92bca8 |
@ -1,12 +0,0 @@
|
||||
--- grub-core/script/yylex.l 2012-06-08 20:54:21 +0000
|
||||
+++ grub-core/script/yylex.l 2012-09-05 06:51:31 +0000
|
||||
@@ -29,6 +29,8 @@
|
||||
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
||||
#pragma GCC diagnostic ignored "-Wmissing-declarations"
|
||||
#pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations"
|
||||
+#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
+#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
|
||||
#define yyfree grub_lexer_yyfree
|
||||
#define yyalloc grub_lexer_yyalloc
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- grub-2.00/grub-core/kern/emu/hostdisk.c.orig 2013-06-09 12:48:55.969139451 +0200
|
||||
+++ grub-2.00/grub-core/kern/emu/hostdisk.c 2013-06-09 12:45:35.250105585 +0200
|
||||
@@ -431,7 +431,7 @@
|
||||
uint64_t length, start;
|
||||
char *target, *params;
|
||||
char *ptr;
|
||||
- int major, minor;
|
||||
+ int major = 0, minor = 0;
|
||||
int first = 1;
|
||||
grub_disk_addr_t partstart = 0;
|
||||
|
@ -1,11 +0,0 @@
|
||||
diff -Nru grub-2.00.orig/grub-core/gnulib/stdio.in.h grub-2.00/grub-core/gnulib/stdio.in.h
|
||||
--- grub-2.00.orig/grub-core/gnulib/stdio.in.h 2010-12-01 15:45:43.000000000 +0100
|
||||
+++ grub-2.00/grub-core/gnulib/stdio.in.h 2013-03-04 22:11:15.763270577 +0100
|
||||
@@ -141,7 +141,6 @@
|
||||
so any use of gets warrants an unconditional warning. Assume it is
|
||||
always declared, since it is required by C89. */
|
||||
#undef gets
|
||||
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
|
||||
#if @GNULIB_FOPEN@
|
||||
# if @REPLACE_FOPEN@
|
@ -1,20 +0,0 @@
|
||||
--- grub-2.04/util/grub-install-common.c.orig 2019-12-22 22:28:32.286000000 +0100
|
||||
+++ grub-2.04/util/grub-install-common.c 2019-12-22 22:25:23.601000000 +0100
|
||||
@@ -598,7 +598,7 @@
|
||||
grub_util_fd_closedir (d);
|
||||
}
|
||||
|
||||
-#if !(defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
|
||||
+#if (defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
|
||||
static const char *
|
||||
get_localedir (void)
|
||||
{
|
||||
@@ -659,7 +659,7 @@
|
||||
grub_install_copy_nls(const char *src __attribute__ ((unused)),
|
||||
const char *dst __attribute__ ((unused)))
|
||||
{
|
||||
-#if !(defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
|
||||
+#if (defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
|
||||
char *dst_locale;
|
||||
|
||||
dst_locale = grub_util_path_concat (2, dst, "locale");
|
@ -1,135 +0,0 @@
|
||||
Submitted By: Xi Ruoyao <xry111 AT xry111 DOT site>
|
||||
Date: 2023-02-18
|
||||
Initial Package Version: 2.06
|
||||
Upstream Status: Committed
|
||||
Origin: Upstream git repository, commit SHA follows:
|
||||
7fd5feff97c4b1f446f8fcf6d37aca0c64e7c763
|
||||
2e9fa73a040462b81bfbfe56c0bc7ad2d30b446b
|
||||
Description: Recognize ext2/3/4 filesystem features
|
||||
metdata_csum_seed and large_dir; ignore them as
|
||||
they are not used by GRUB and can be safely
|
||||
ignored, instead of treat these unrecognized
|
||||
features as hard errors. Particularly, the
|
||||
metadata_csum_seed feature is enabled by
|
||||
e2fsprogs >= 1.47.0, so failing to recognize it
|
||||
will cause grub-install failure if the /boot
|
||||
partition (or /, when /boot is not a separate
|
||||
partition) is created by a recent mkfs.ext4.
|
||||
|
||||
From 7fd5feff97c4b1f446f8fcf6d37aca0c64e7c763 Mon Sep 17 00:00:00 2001
|
||||
From: Javier Martinez Canillas <javierm@redhat.com>
|
||||
Date: Fri, 11 Jun 2021 21:36:16 +0200
|
||||
Subject: [PATCH] fs/ext2: Ignore checksum seed incompat feature
|
||||
|
||||
This incompat feature is used to denote that the filesystem stored its
|
||||
metadata checksum seed in the superblock. This is used to allow tune2fs
|
||||
changing the UUID on a mounted metdata_csum filesystem without having
|
||||
to rewrite all the disk metadata. However, the GRUB doesn't use the
|
||||
metadata checksum at all. So, it can just ignore this feature if it
|
||||
is enabled. This is consistent with the GRUB filesystem code in general
|
||||
which just does a best effort to access the filesystem's data.
|
||||
|
||||
The checksum seed incompat feature has to be removed from the ignore
|
||||
list if the support for metadata checksum verification is added to the
|
||||
GRUB ext2 driver later.
|
||||
|
||||
Suggested-by: Eric Sandeen <esandeen@redhat.com>
|
||||
Suggested-by: Lukas Czerner <lczerner@redhat.com>
|
||||
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
||||
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
|
||||
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||
---
|
||||
grub-core/fs/ext2.c | 10 ++++++++--
|
||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/grub-core/fs/ext2.c b/grub-core/fs/ext2.c
|
||||
index e7dd78e66..4953a1591 100644
|
||||
--- a/grub-core/fs/ext2.c
|
||||
+++ b/grub-core/fs/ext2.c
|
||||
@@ -103,6 +103,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
|
||||
#define EXT4_FEATURE_INCOMPAT_64BIT 0x0080
|
||||
#define EXT4_FEATURE_INCOMPAT_MMP 0x0100
|
||||
#define EXT4_FEATURE_INCOMPAT_FLEX_BG 0x0200
|
||||
+#define EXT4_FEATURE_INCOMPAT_CSUM_SEED 0x2000
|
||||
#define EXT4_FEATURE_INCOMPAT_ENCRYPT 0x10000
|
||||
|
||||
/* The set of back-incompatible features this driver DOES support. Add (OR)
|
||||
@@ -123,10 +124,15 @@ GRUB_MOD_LICENSE ("GPLv3+");
|
||||
* mmp: Not really back-incompatible - was added as such to
|
||||
* avoid multiple read-write mounts. Safe to ignore for this
|
||||
* RO driver.
|
||||
+ * checksum seed: Not really back-incompatible - was added to allow tools
|
||||
+ * such as tune2fs to change the UUID on a mounted metadata
|
||||
+ * checksummed filesystem. Safe to ignore for now since the
|
||||
+ * driver doesn't support checksum verification. However, it
|
||||
+ * has to be removed from this list if the support is added later.
|
||||
*/
|
||||
#define EXT2_DRIVER_IGNORED_INCOMPAT ( EXT3_FEATURE_INCOMPAT_RECOVER \
|
||||
- | EXT4_FEATURE_INCOMPAT_MMP)
|
||||
-
|
||||
+ | EXT4_FEATURE_INCOMPAT_MMP \
|
||||
+ | EXT4_FEATURE_INCOMPAT_CSUM_SEED)
|
||||
|
||||
#define EXT3_JOURNAL_MAGIC_NUMBER 0xc03b3998U
|
||||
|
||||
--
|
||||
2.39.2
|
||||
|
||||
From 2e9fa73a040462b81bfbfe56c0bc7ad2d30b446b Mon Sep 17 00:00:00 2001
|
||||
From: Theodore Ts'o <tytso@mit.edu>
|
||||
Date: Tue, 30 Aug 2022 22:41:59 -0400
|
||||
Subject: [PATCH] fs/ext2: Ignore the large_dir incompat feature
|
||||
|
||||
Recently, ext4 added the large_dir feature, which adds support for
|
||||
a 3 level htree directory support.
|
||||
|
||||
The GRUB supports existing file systems with htree directories by
|
||||
ignoring their existence, and since the index nodes for the hash tree
|
||||
look like deleted directory entries (by design), the GRUB can simply do
|
||||
a brute force O(n) linear search of directories. The same is true for
|
||||
3 level deep htrees indicated by large_dir feature flag.
|
||||
|
||||
Hence, it is safe for the GRUB to ignore the large_dir incompat feature.
|
||||
|
||||
Fixes: https://savannah.gnu.org/bugs/?61606
|
||||
|
||||
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
||||
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||
---
|
||||
grub-core/fs/ext2.c | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/grub-core/fs/ext2.c b/grub-core/fs/ext2.c
|
||||
index 0989e26e1..e1cc5e62a 100644
|
||||
--- a/grub-core/fs/ext2.c
|
||||
+++ b/grub-core/fs/ext2.c
|
||||
@@ -104,6 +104,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
|
||||
#define EXT4_FEATURE_INCOMPAT_MMP 0x0100
|
||||
#define EXT4_FEATURE_INCOMPAT_FLEX_BG 0x0200
|
||||
#define EXT4_FEATURE_INCOMPAT_CSUM_SEED 0x2000
|
||||
+#define EXT4_FEATURE_INCOMPAT_LARGEDIR 0x4000 /* >2GB or 3 level htree */
|
||||
#define EXT4_FEATURE_INCOMPAT_ENCRYPT 0x10000
|
||||
|
||||
/* The set of back-incompatible features this driver DOES support. Add (OR)
|
||||
@@ -129,10 +130,17 @@ GRUB_MOD_LICENSE ("GPLv3+");
|
||||
* checksummed filesystem. Safe to ignore for now since the
|
||||
* driver doesn't support checksum verification. However, it
|
||||
* has to be removed from this list if the support is added later.
|
||||
+ * large_dir: Not back-incompatible given that the GRUB ext2 driver does
|
||||
+ * not implement EXT2_FEATURE_COMPAT_DIR_INDEX. If the GRUB
|
||||
+ * eventually supports the htree feature (aka dir_index)
|
||||
+ * it should support 3 level htrees and then move
|
||||
+ * EXT4_FEATURE_INCOMPAT_LARGEDIR to
|
||||
+ * EXT2_DRIVER_SUPPORTED_INCOMPAT.
|
||||
*/
|
||||
#define EXT2_DRIVER_IGNORED_INCOMPAT ( EXT3_FEATURE_INCOMPAT_RECOVER \
|
||||
| EXT4_FEATURE_INCOMPAT_MMP \
|
||||
- | EXT4_FEATURE_INCOMPAT_CSUM_SEED)
|
||||
+ | EXT4_FEATURE_INCOMPAT_CSUM_SEED \
|
||||
+ | EXT4_FEATURE_INCOMPAT_LARGEDIR)
|
||||
|
||||
#define EXT3_JOURNAL_MAGIC_NUMBER 0xc03b3998U
|
||||
|
||||
--
|
||||
2.39.2
|
||||
|
@ -29,7 +29,7 @@
|
||||
+ fi
|
||||
+ done
|
||||
+ if test -n "${initrd}" ; then
|
||||
+ gettext_printf "Found initrd image: %sn" "${dirname}/${initrd}" >&2
|
||||
+ gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
|
||||
+ linux_entry "${OS} (failsafe)" "${version}" advanced \
|
||||
+ "rddebug splash selinux=0 ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
||||
+ fi
|
||||
|
3
grub-sbat.csv
Normal file
3
grub-sbat.csv
Normal file
@ -0,0 +1,3 @@
|
||||
sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md
|
||||
grub,3,Free Software Foundation,grub,%PKGVER%,https//www.gnu.org/software/grub/
|
||||
grub.openmamba,1,openmamba,grub,%PKGVER%,https://openmamba.org/en/rpms/base/grub/
|
|
210
grub.spec
210
grub.spec
@ -1,35 +1,31 @@
|
||||
%define majver %(echo %version| cut -d. -f1-2)
|
||||
%define pkgver %(echo %version | tr _ -)
|
||||
%define unifont_ver 15.1.04
|
||||
%define unifont_ver 16.0.01
|
||||
|
||||
Name: grub
|
||||
Epoch: 2
|
||||
Version: 2.12
|
||||
Release: 3mamba
|
||||
Release: 7mamba
|
||||
Summary: A Multiboot boot loader derived from GRUB, the GRand Unified Bootloader
|
||||
Group: System/Kernel and Hardware
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.gnu.org/software/grub/
|
||||
URL: https://www.gnu.org/software/grub/
|
||||
Source: https://ftp.gnu.org/gnu/grub/grub-%{version}.tar.gz
|
||||
Source1: https://ftp.gnu.org/gnu/unifont/unifont-%{unifont_ver}/unifont-%{unifont_ver}.bdf.gz
|
||||
Source2: %{name}2-default
|
||||
Source2: grub2-default
|
||||
Source3: grub-2.00-openmamba-conf-other
|
||||
Source4: %{name}2-sysconfig
|
||||
Source4: grub2-sysconfig
|
||||
Source5: grub-2.00-openmamba-conf-other-linux
|
||||
Source6: %{name}2-conf-failsafe
|
||||
Source6: grub2-conf-failsafe
|
||||
Source7: grub-sbat.csv
|
||||
Patch1: grub-2.12-openmamba_boot_choices.patch
|
||||
Patch2: grub-2.00-stdio.patch
|
||||
Patch3: %{name}2-1.97-sysconfig.patch
|
||||
Patch9: %{name}2-1.99-fix_saved_entry_default.patch
|
||||
Patch10: grub-2.00-flex-2.5.37.patch
|
||||
Patch11: grub-2.00-gcc-4.5.patch
|
||||
Patch3: grub2-1.97-sysconfig.patch
|
||||
Patch9: grub2-1.99-fix_saved_entry_default.patch
|
||||
Patch12: grub-2.06-openmamba-default-nomodeset.patch
|
||||
Patch13: grub-2.12-silent-boot.patch
|
||||
Patch14: grub-2.04-fix-enable-nls-install-locale-dir.patch
|
||||
Patch15: grub-2.04-custom-boot-message.patch
|
||||
Patch16: grub-2.06-e2fsprogs-1.47.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
@ -57,6 +53,7 @@ Requires: xorriso
|
||||
Provides: bootloader
|
||||
Provides: grub2
|
||||
Obsoletes: grub2 < 2:2.06
|
||||
Obsoletes: mactel-boot <= 0.9-1mamba
|
||||
|
||||
%description
|
||||
GNU GRUB is a Multiboot boot loader. It was derived from GRUB, GRand Unified Bootloader, which was originally designed and implemented by Erich Stefan Boleyn.
|
||||
@ -98,17 +95,17 @@ This package contains the efi boot files needed to boot according to EFI standar
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -n grub-%{majver}
|
||||
#-D -T
|
||||
%setup -q -c -a0
|
||||
#% setup -q -D -T
|
||||
#:<< _EOF
|
||||
mv grub-%{version} grub
|
||||
cd grub
|
||||
%patch 1 -p1
|
||||
%patch 3 -p1
|
||||
%patch 9 -p1
|
||||
%patch 12 -p1
|
||||
%patch 13 -p1
|
||||
#%patch14 -p1
|
||||
%patch 15 -p1
|
||||
#%patch 16 -p1
|
||||
|
||||
gunzip -c %{SOURCE1} > unifont.bdf
|
||||
|
||||
@ -126,69 +123,115 @@ sh ./linguas.sh
|
||||
# 2.12: workaround for *** No rule to make target '../grub-core/extra_deps.lst', needed by 'syminfo.lst'
|
||||
touch grub-core/extra_deps.lst
|
||||
|
||||
%ifarch x86_64 %{ix86}
|
||||
cd ..
|
||||
cp -a grub grub-efi-i386
|
||||
cp -a grub grub-efi-x86_64
|
||||
%endif
|
||||
|
||||
%build
|
||||
#:<< _EOF
|
||||
CONFIGURE_OPTIONS="
|
||||
--prefix=%{_prefix}
|
||||
--bindir=%{_bindir}
|
||||
--sbindir=%{_bindir}
|
||||
--mandir=%{_mandir}
|
||||
--infodir=%{_infodir}
|
||||
--datarootdir=%{_datadir}
|
||||
--sysconfdir=%{_sysconfdir}
|
||||
--libdir=%{_prefix}/lib
|
||||
--enable-mm-debug
|
||||
--enable-nls
|
||||
--enable-device-mapper
|
||||
--enable-cache-stats
|
||||
--enable-boot-time
|
||||
--enable-grub-mkfont
|
||||
--enable-grub-mount
|
||||
--disable-silent-rules
|
||||
--disable-werror
|
||||
CFLAGS=
|
||||
CXXFLAGS=
|
||||
FFLAGS=
|
||||
"
|
||||
|
||||
cd grub
|
||||
# WARNING: build requires ld.bfd; ld.gold produces not working binary
|
||||
%configure \
|
||||
./configure \
|
||||
%ifarch x86_64 %{ix86}
|
||||
--with-platform="pc" \
|
||||
--target="i386" \
|
||||
%endif
|
||||
--libdir=%{_prefix}/lib \
|
||||
%ifarch x86_64
|
||||
--enable-efiemu \
|
||||
%else
|
||||
--disable-efiemu \
|
||||
%endif
|
||||
--enable-mm-debug \
|
||||
--enable-nls \
|
||||
--enable-device-mapper \
|
||||
--enable-cache-stats \
|
||||
--enable-boot-time \
|
||||
--enable-grub-mkfont \
|
||||
--enable-grub-mount \
|
||||
--enable-libzfs \
|
||||
--disable-silent-rules \
|
||||
--disable-werror \
|
||||
CFLAGS= \
|
||||
CXXFLAGS= \
|
||||
FFLAGS=
|
||||
${CONFIGURE_OPTIONS}
|
||||
|
||||
# don't use % make because unset *FLAGS are needed
|
||||
make
|
||||
cd ..
|
||||
#_EOF
|
||||
|
||||
%ifarch x86_64 %{ix86}
|
||||
# i386-efi
|
||||
cd grub-efi-i386
|
||||
#export EFI_ARCH=i586-openmamba-linux-gnu
|
||||
export EFI_ARCH=i386
|
||||
./configure \
|
||||
--disable-efiemu \
|
||||
--enable-boot-time \
|
||||
--with-platform=efi \
|
||||
--target=${EFI_ARCH} \
|
||||
%ifarch %{ix86}
|
||||
--enable-libzfs \
|
||||
%endif
|
||||
${CONFIGURE_OPTIONS}
|
||||
|
||||
#--host=%{_host_arch} TARGET_CC="%{_host}-gcc"
|
||||
make
|
||||
#-j1 CFLAGS="-Wno-error %{optflags} -Os -m32" LDFLAGS_PLATFORM="-m32"
|
||||
|
||||
# x86_64-efi
|
||||
cd ../grub-efi-x86_64
|
||||
#export EFI_ARCH=x86_64-openmamba-linux-gnu
|
||||
export EFI_ARCH=x86_64
|
||||
./configure \
|
||||
--disable-efiemu \
|
||||
--enable-boot-time \
|
||||
--with-platform=efi \
|
||||
--target=${EFI_ARCH} \
|
||||
%ifarch x86_64
|
||||
--enable-libzfs \
|
||||
%endif
|
||||
${CONFIGURE_OPTIONS}
|
||||
|
||||
make -j1 CFLAGS="-Wno-error"
|
||||
%endif
|
||||
|
||||
## Generate Latin-1, Latin Extended A+B, Arrows, Box and Block characters:
|
||||
#./grub-mkfont --output=unifont.pf2 --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f unifont.bdf
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
%makeinstall -C grub
|
||||
|
||||
# Build EFI grub (x86_64 build disabled for now because it requires lib32-libdevmapper)
|
||||
%ifarch %{ix86}
|
||||
%find_lang grub || touch %{name}.lang
|
||||
|
||||
%ifarch x86_64 %{ix86}
|
||||
# i386-efi
|
||||
make clean
|
||||
rm -f *.d
|
||||
export EFI_ARCH=i586-openmamba-linux-gnu
|
||||
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --libdir=%{_prefix}/lib \
|
||||
--with-platform=efi --target=${EFI_ARCH}
|
||||
#--host=%{_host_arch} TARGET_CC="%{_host}-gcc"
|
||||
make -j1 CFLAGS="-Wno-error %{optflags} -Os -m32" LDFLAGS_PLATFORM="-m32"
|
||||
cd grub-efi-i386
|
||||
ARCHOUT=i386-efi
|
||||
install -d %{buildroot}%{_prefix}/lib/grub/${ARCHOUT}
|
||||
cp grub-core/{*.mod,*.lst,*.img,*.sh,*.lst} %{buildroot}%{_libdir}/grub/${ARCHOUT}/
|
||||
cp grub-core/{*.mod,*.lst,*.img,*.sh,*.lst} %{buildroot}%{_prefix}/lib/grub/${ARCHOUT}/
|
||||
#./grub-mkimage -o bootia32.efi -O ${ARCHOUT} -p /efi/boot -d ./grub-core part_gpt part_msdos ntfs ntfscomp hfsplus fat ext2 normal chain boot linux echo help gfxterm gettext png efi_gop efi_uga
|
||||
#`find . -name *.mod | xargs | sed -e 's/.mod//g'`
|
||||
#% makeinstall
|
||||
#cp bootia32.efi %{buildroot}%{_prefix}/lib/grub/
|
||||
|
||||
# x86_64-efi
|
||||
make clean
|
||||
rm -f *.d
|
||||
export EFI_ARCH=x86_64-openmamba-linux-gnu
|
||||
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --libdir=%{_prefix}/lib \
|
||||
--with-platform=efi --target=${EFI_ARCH}
|
||||
make -j1 CFLAGS="-Wno-error"
|
||||
cd ../grub-efi-x86_64
|
||||
ARCHOUT=x86_64-efi
|
||||
install -d %{buildroot}%{_prefix}/lib/grub/${ARCHOUT}
|
||||
cp grub-core/{*.mod,*.lst,*.img,*.sh,*.lst} %{buildroot}%{_prefix}/lib/grub/${ARCHOUT}/
|
||||
@ -198,43 +241,23 @@ cp grub-core/{*.mod,*.lst,*.img,*.sh,*.lst} %{buildroot}%{_prefix}/lib/grub/${AR
|
||||
#cp bootx64.efi %{buildroot}%{_prefix}/lib/grub/
|
||||
%endif
|
||||
|
||||
%ifarch x86_64
|
||||
make clean
|
||||
rm -f *.d
|
||||
export EFI_ARCH=x86_64-openmamba-linux-gnu
|
||||
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --libdir=%{_prefix}/lib \
|
||||
--with-platform=efi
|
||||
make -j1 CFLAGS="-Wno-error"
|
||||
ARCHOUT=x86_64-efi
|
||||
install -d %{buildroot}%{_prefix}/lib/grub/${ARCHOUT}
|
||||
cp grub-core/{*.mod,*.lst,*.img,*.sh,*.lst} %{buildroot}%{_prefix}/lib/grub/${ARCHOUT}/
|
||||
#./grub-mkimage -o bootx64.efi -O ${ARCHOUT} -p /efi/boot -d ./grub-core part_gpt part_msdos ntfs ntfscomp hfsplus fat ext2 normal chain boot linux echo help gfxterm gettext png efi_gop efi_uga
|
||||
#`find . -name *.mod | xargs | sed -e 's/.mod//g'`
|
||||
#% makeinstall
|
||||
#cp bootx64.efi %{buildroot}%{_prefix}/lib/grub/
|
||||
%endif
|
||||
|
||||
#install -D -m0644 unifont.pf2 %{buildroot}/boot/grub/unifont.pf2
|
||||
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/default/grub
|
||||
#install -D -m0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/grub.d/20_other
|
||||
#install -D -m0755 %{SOURCE5} %{buildroot}%{_sysconfdir}/grub.d/30_other_linux
|
||||
#install -D -m0755 %{SOURCE6} %{buildroot}%{_sysconfdir}/grub.d/90_linux_failsafe
|
||||
install -D -m0755 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/grub
|
||||
|
||||
cat > %{buildroot}%{_sbindir}/update-grub << _EOF
|
||||
cat > %{buildroot}%{_bindir}/update-grub << _EOF
|
||||
#!/bin/bash
|
||||
cp -f /boot/grub/grub.cfg /boot/grub/grub.cfg.old
|
||||
%{_sbindir}/grub-mkconfig $@ > /boot/grub/grub.cfg
|
||||
exit $?
|
||||
_EOF
|
||||
chmod +x %{buildroot}%{_sbindir}/update-grub
|
||||
chmod +x %{buildroot}%{_bindir}/update-grub
|
||||
|
||||
install -d -m0755 %{buildroot}/boot/grub
|
||||
install -d -m0755 %{buildroot}/boot/efi
|
||||
|
||||
%find_lang grub || touch %{name}.lang
|
||||
# Provide a simple sbat.csv required for EFI with secure boot support
|
||||
sed -e "s/%%PKGVER%/%{epoch}:%{version}-%{release}/" < %{SOURCE7} > %{buildroot}%{_datadir}/grub/sbat.csv
|
||||
|
||||
#rm -f %{buildroot}%{_sysconfdir}/grub.d/30_os-prober
|
||||
rm -f %{buildroot}%{_infodir}/dir
|
||||
|
||||
%post
|
||||
@ -273,7 +296,7 @@ if [ $1 -ge 1 ]; then
|
||||
. /etc/os-release
|
||||
if [ -e /boot/efi/EFI/${NAME} -a -e /sys/firmware/efi ]; then
|
||||
grub-install --target=i386-efi --efi-directory=/boot/efi \
|
||||
--bootloader-id="${NAME}" --recheck
|
||||
--bootloader-id="${NAME}32" --recheck
|
||||
fi
|
||||
fi
|
||||
:
|
||||
@ -327,22 +350,23 @@ fi
|
||||
%{_bindir}/grub-render-label
|
||||
%{_bindir}/grub-script-check
|
||||
%{_bindir}/grub-syslinux2cfg
|
||||
%{_sbindir}/grub-bios-setup
|
||||
%{_sbindir}/grub-install
|
||||
%{_sbindir}/grub-macbless
|
||||
%{_sbindir}/grub-mkconfig
|
||||
%{_sbindir}/grub-ofpathname
|
||||
%{_sbindir}/grub-reboot
|
||||
%{_sbindir}/grub-set-default
|
||||
%{_sbindir}/grub-sparc64-setup
|
||||
%{_sbindir}/grub-probe
|
||||
%{_sbindir}/update-grub
|
||||
%{_bindir}/grub-bios-setup
|
||||
%{_bindir}/grub-install
|
||||
%{_bindir}/grub-macbless
|
||||
%{_bindir}/grub-mkconfig
|
||||
%{_bindir}/grub-ofpathname
|
||||
%{_bindir}/grub-reboot
|
||||
%{_bindir}/grub-set-default
|
||||
%{_bindir}/grub-sparc64-setup
|
||||
%{_bindir}/grub-probe
|
||||
%{_bindir}/update-grub
|
||||
%dir /boot/grub
|
||||
%dir %{_datadir}/grub
|
||||
%{_datadir}/grub/ascii.h
|
||||
%{_datadir}/grub/ascii.pf2
|
||||
%{_datadir}/grub/euro.pf2
|
||||
%{_datadir}/grub/grub-mkconfig_lib
|
||||
%{_datadir}/grub/sbat.csv
|
||||
%{_datadir}/grub/unicode.pf2
|
||||
%{_datadir}/grub/widthspec.h
|
||||
%{_infodir}/grub-dev.info.gz
|
||||
@ -356,7 +380,7 @@ fi
|
||||
%{_mandir}/man1/grub*.1.gz
|
||||
%{_mandir}/man8/grub*.8.gz
|
||||
%{_datadir}/info/grub.info.gz
|
||||
%doc AUTHORS COPYING
|
||||
%doc grub/AUTHORS grub/COPYING
|
||||
#% doc ChangeLog NEWS README THANKS TODO
|
||||
|
||||
%files theme-starfield
|
||||
@ -364,11 +388,11 @@ fi
|
||||
%dir %{_datadir}/grub/themes/starfield
|
||||
%{_datadir}/grub/themes/starfield/*
|
||||
|
||||
%ifarch %{ix86} aarch64
|
||||
%ifarch %{ix86} aarch64 x86_64
|
||||
%files efi
|
||||
%defattr(-,root,root)
|
||||
%dir /boot/efi
|
||||
%ifarch %{ix86}
|
||||
%ifarch x86_64 %{ix86}
|
||||
%dir %{_prefix}/lib/grub/i386-efi
|
||||
%{_prefix}/lib/grub/i386-efi/*
|
||||
%endif
|
||||
@ -387,6 +411,20 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Nov 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-7mamba
|
||||
- grub-efi: set bootloader-id as openmamba32 to avoid overriding x86_64-efi image
|
||||
|
||||
* Sat Nov 23 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-6mamba
|
||||
- x86_64: provide grub-efi (i386-efi)
|
||||
|
||||
* Sun Oct 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-5mamba
|
||||
- provide a simple sbat.csv file to be used to generate EFI images with secure boot support
|
||||
- update unifont to 16.0.01
|
||||
- fix newline typo in openmamba_boot_choices patch
|
||||
|
||||
* Thu Oct 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-4mamba
|
||||
- obsolete mactel-boot (replaced by grub-mactables)
|
||||
|
||||
* Mon Mar 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12-3mamba
|
||||
- grub-efi-x86_64: set bootloader-id to distribution name from /etc/os-release
|
||||
|
||||
|
Binary file not shown.
BIN
unifont-16.0.01.bdf.gz
Normal file
BIN
unifont-16.0.01.bdf.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user