recent changes, fix f2fs

This commit is contained in:
Christian Hesse 2022-12-09 07:31:12 +00:00
parent 92722650a8
commit c59457cc72
2 changed files with 20 additions and 2 deletions

13
0003-fix-f2fs.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/grub-core/fs/f2fs.c b/grub-core/fs/f2fs.c
index df6beb544cbd..855e24618c2b 100644
--- a/grub-core/fs/f2fs.c
+++ b/grub-core/fs/f2fs.c
@@ -650,7 +650,7 @@ get_blkaddr_from_nat_journal (struct grub_f2fs_data *data, grub_uint32_t nid,
grub_uint16_t n = grub_le_to_cpu16 (data->nat_j.n_nats);
grub_uint16_t i;
- if (n >= NAT_JOURNAL_ENTRIES)
+ if (n > NAT_JOURNAL_ENTRIES)
return grub_error (GRUB_ERR_BAD_FS,
"invalid number of nat journal entries");

View File

@ -18,8 +18,8 @@ _GRUB_EMU_BUILD="0"
pkgname='grub'
pkgdesc='GNU GRand Unified Bootloader (2)'
epoch=2
_commit='1514678888595ef41a968a0c69b7ff769edd1e9c'
_pkgver=2.06.r380.g151467888
_commit='7259d55ffcf124e32eafb61aa381f9856e98a708'
_pkgver=2.06.r403.g7259d55ff
_unifont_ver='15.0.01'
pkgver=${_pkgver/-/}
pkgrel=1
@ -62,6 +62,7 @@ source=("git+https://git.savannah.gnu.org/git/grub.git#commit=${_commit}"
"https://ftp.gnu.org/gnu/unifont/unifont-${_unifont_ver}/unifont-${_unifont_ver}.bdf.gz"{,.sig}
'0001-00_header-add-GRUB_COLOR_-variables.patch'
'0002-10_linux-detect-archlinux-initramfs.patch'
'0003-fix-f2fs.patch'
'grub.default'
'sbat.csv')
@ -71,6 +72,7 @@ sha256sums=('SKIP'
'SKIP'
'5dee6628c48eef79812bb9e86ee772068d85e7fcebbd2b2b8d1e19d24eda9dab'
'8488aec30a93e8fe66c23ef8c23aefda39c38389530e9e73ba3fbcc8315d244d'
'b783ec919b22e628d3db91ede4571272ffa833d20ab42eccace15258a884c26b'
'7df3f5cb5df7d2dfb17f4c9b5c5dedc9519ddce6f8d2c6cd43d1be17cecb65cb'
'98b23d41e223bdc0a6e20bdcb3aa77e642f29b64081b1fd2f575314172fc89df')
@ -128,6 +130,9 @@ prepare() {
echo "Patch to detect of Arch Linux initramfs images by grub-mkconfig..."
patch -Np1 -i "${srcdir}/0002-10_linux-detect-archlinux-initramfs.patch"
echo "Patch to fix f2fs..."
patch -Np1 -i "${srcdir}/0003-fix-f2fs.patch"
echo "Fix DejaVuSans.ttf location so that grub-mkfont can create *.pf2 files for starfield theme..."
sed 's|/usr/share/fonts/dejavu|/usr/share/fonts/dejavu /usr/share/fonts/TTF|g' -i "configure.ac"