66 Commits

Author SHA1 Message Date
Arne Fitzenreiter
ed5e80eb62 grub: update to 2.12 (final release version)
this should fix problems on systems installed on xfs

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-01-10 07:22:59 +01:00
Arne Fitzenreiter
3273f4796a grub: update to 2.12-rc1
this is the first version that support booting linux kernel on
riscv. The release of the final version was delayed again and again
so i have bootstrapped the rc1 from the git and fixed the path in 25_bli.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2023-11-24 12:53:51 +00:00
Arne Fitzenreiter
64d0f1a074 grub: fix mkimage on riscv64 and fix cdrom
the riscv64 image needs more than 1.44MB

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-09 08:16:24 +00:00
Arne Fitzenreiter
1b6047b3ee riscv64: enable EFI support and tools for riscv64
grub is still buggy! grub-install fails with an error:
Relocation 0x13 is not implented!

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-03-04 14:01:43 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Michael Tremer
6cf219c427 Drop support for i586
This patch removes support for i586 according to the decision being
taken over a year ago.

It removes the architecture from the build system and removes all
required hacks and other quirks that have been necessary before.

There is no need to ship any changed files to the remaining
architectures as the removed code branches have not been used.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-12-04 23:27:26 +01:00
Arne Fitzenreiter
ff54a798a5 grub: fix cloudhelper permissions
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-08-02 07:38:43 +02:00
Arne Fitzenreiter
21e0da660d grub: fix cloud helper installation
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-08-01 17:08:46 +02:00
Michael Tremer
1e848ad3d4 grub: Add file with cloud helping stuff
This file will detect whether to do certain actions depending on the
environment it is running on.

Currently this detects whether IPFire is booting up on AWS EC2 and
selects the serial console boot entry.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-08-01 13:24:22 +00:00
Arne Fitzenreiter
bbe7cb5529 grub: remove os_probes_disabled warning
the os_prober is disabled by default because it opens an attack vector.
u

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-05 07:42:39 +02:00
Arne Fitzenreiter
26553bec8a grub: update to 2.06
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-05 07:42:39 +02:00
Peter Müller
7086c36246 ~/src/patches/: Clean up orphaned patches, second batch
This also moves existing patches into their applications' directory
within ~/src/patches/, if already existant.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2021-06-04 18:24:23 +02:00
Michael Tremer
9b34655840 grub: Run autoreconf after applying patches
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-17 15:09:24 +00:00
Arne Fitzenreiter
f8561a5c16 grub: update to 2.04
fixes: #12463

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Acked-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-14 15:10:14 +00:00
Michael Tremer
4987d0ed19 grub: Fix relocation type issue
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-28 09:43:37 +01:00
Michael Tremer
2cecfd0fdb grub: Fix build error with GCC 8
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-26 16:19:51 +01:00
Michael Tremer
452d2b6eaa grub: Disable efiemu on PC builds
This won't compile with GCC 8 and we do not need it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-26 16:19:42 +01:00
Stefan Schantl
848ac69009 grub: xfs: Accept filesystem with sparse inodes
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Tested-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-13 13:07:53 +00:00
Michael Tremer
92505ef003 Drop paxctl
We do not have grsecurity and more and there is no point
in shipping this tool.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-29 11:27:34 +00:00
Arne Fitzenreiter
5dd9140a44 grub: apply vga fallback disable patch again
on some systems (e.g. J1900 based) grub detects a too low resolution
and use it. This is no problem in grub itself but the kernel not render
the consoles in this mode.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-07-22 13:41:38 +02:00
Michael Tremer
b62f71f7f2 Build GRUB on aarch64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
24e811b03a grub: Don't install an empty EFI configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Michael Tremer
308af080f6 grub: Build new version in EFI mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:50 +01:00
Michael Tremer
7fbbd2aebc Enable EFI on x86_64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:49 +01:00
Michael Tremer
784cd5cbd7 Enhance the flash image to support EFI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:49 +01:00
Arne Fitzenreiter
20406699e3 grub: update to 2.02
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-04-17 06:10:06 +02:00
Arne Fitzenreiter
da504bdc57 grub: ignore missing .symtab in modules
old binutis add an empty .symtab section at stripping
and grub check that this exists also on modules that export
no symbols.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2017-07-05 17:42:21 +02:00
Michael Tremer
5e00841da0 Revert "Drop paxctl"
This reverts commit ae666b0c23.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-06-14 15:52:33 +01:00
Michael Tremer
ae666b0c23 Drop paxctl
Since the new toolchain the flags are not compiled into the
binaries any more which causes paxctl to fail.

On top of that, PaX and grsecurity won't be available freely
any more which requires us to remove it from the distribution.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:08:22 +01:00
Michael Tremer
a18c2318d8 grub: Fix compile error in gnulib with newer GCCs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:08:10 +01:00
Michael Tremer
b75b6382ab grub: Disable hardening for grub-script-check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-01-10 19:35:42 +00:00
Matthias Fischer
44fb4620ee grub 2.00: Bugfix for CVE-2015-8370
See: http://hmarco.org/bugs/CVE-2015-8370-Grub2-authentication-bypass.html

"A vulnerability in Grub2 has been found. Versions from 1.98 (December, 2009)
to 2.02 (December, 2015) are affected. The vulnerability can be exploited
under certain circumstances, allowing local attackers to bypass any kind of
authentication (plain or hashed passwords). And so, the attacker may take
control of the computer."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-18 23:40:00 +00:00
Michael Tremer
ebf9683b4d grub: Build for x86_64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-09-11 00:18:41 +02:00
Arne Fitzenreiter
42066c88d5 grub2: disable vga (640x350) fallback driver.
This mode is incompatible on bay-trail.
2014-09-06 17:15:39 +02:00
Stefan Schantl
df62453e9c Merge branch 'install-raid' of ssh://git.ipfire.org/pub/git/people/ms/ipfire-2.x into grub-unifont
Conflicts:
	config/rootfiles/common/i586/grub
2014-09-04 18:11:00 +02:00
Stefan Schantl
ed8977a1a0 grub: Add unifont.pf2.
We directly generate a grub2 compatible font file
from the main unifont font file, by using grub-mkfont.

This binary requires fontconfig as build dependency, so I moved it in
the build hirachy before the grub package.
2014-09-04 18:00:02 +02:00
Michael Tremer
3ef5dd9871 grub: Add splash image 2014-09-04 12:07:10 +02:00
Michael Tremer
f5007e9c99 installer: Install GRUB2 instead of GRUB legacy. 2014-07-24 15:14:27 +02:00
Michael Tremer
f5bfed65ac grub: Update to 2.00 for i586. 2014-07-24 14:13:19 +02:00
Arne Fitzenreiter
a1a94abed1 grub: disable pax mprotect for grub. 2013-08-31 11:17:14 +02:00
Arne Fitzenreiter
10af520f16 grub: create default file.
grub will not boot if the file not exist.
2012-11-12 23:42:08 +01:00
Michael Tremer
b66eb296d1 grub: Replace patches to have grub-set-default again. 2012-11-11 18:51:17 +01:00
Michael Tremer
ad9406987b grub: Remove all CFLAGS. 2012-09-04 21:24:59 +02:00
Michael Tremer
9860396338 grub: Replace patchset. 2012-08-20 12:15:42 +02:00
Michael Tremer
846e756e16 Add possibility to disable packages for some arches. 2011-09-18 02:15:28 +02:00
Arne Fitzenreiter
47f651f156 Fix grub installation on virtio hdd. 2010-06-24 09:48:53 +02:00
Michael Tremer
82705b6e99 Add some patches to grub. 2010-03-07 23:45:06 +01:00
Arne Fitzenreiter
f5bc53eb7f Patched grub for vitio blockdevice 2009-08-15 21:58:25 +02:00
ms
d4cf6d647a Der Grub findet leider ohne diesen Patch nicht die richtige Partition.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@969 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-14 10:59:34 +00:00
ms
77f1c55ffe Der Grub lies sich auf einigen RAID-Controllern nicht installieren...
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@963 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-13 19:29:30 +00:00