Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

efi: new 'connectefi' command #108

Open
wants to merge 291 commits into
base: rhel-9-main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
291 commits
Select commit Hold shift + click to select a range
583225a
Try mac/guid/etc before grub.cfg on tftp config files.
vathpela Jul 8, 2019
34739f2
Generate OS and CLASS in 10_linux from /etc/os-release
vathpela Sep 4, 2014
ae19dc9
Minimize the sort ordering for .debug and -rescue- kernels.
vathpela Sep 4, 2014
4b8a82e
Try $prefix if $fw_path doesn't work.
vathpela Jul 9, 2019
164e215
Use Distribution Package Sort for grub2-mkconfig (#1124074)
kellinm Mar 16, 2015
5d615cc
Make grub2-mkconfig construct titles that look like the ones we want …
vathpela Apr 28, 2015
e9537a6
Add friendly grub2 password config tool (#985962)
kellinm Jun 25, 2015
5d1573f
tcp: add window scaling support
Aug 12, 2015
2e8cfae
efinet and bootp: add support for dhcpv6
vathpela Jul 9, 2019
49bbb0d
Add grub-get-kernel-settings and use it in 10_linux
vathpela Jun 23, 2016
27bf33b
bz1374141 fix incorrect mask for ppc64
mmatsuya Oct 28, 2016
e1af6a5
Make grub_fatal() also backtrace.
vathpela Jan 27, 2016
90b0319
Fix up some man pages rpmdiff noticed.
vathpela Sep 23, 2014
9ca44e2
Make our info pages say "grub2" where appropriate.
vathpela Jul 9, 2019
380a323
macos: just build chainloader entries, don't try any xnu xnu.
vathpela May 24, 2017
e8cb358
grub2/btrfs: Add ability to boot from subvolumes
jeffmahoney Jul 9, 2019
77eef8d
export btrfs_subvol and btrfs_subvolid
WenhuaChang Dec 18, 2013
fb8a368
grub2-btrfs-03-follow_default
WenhuaChang Aug 21, 2014
a6d7944
grub2-btrfs-04-grub2-install
WenhuaChang Aug 21, 2014
c498ca3
grub2-btrfs-05-grub2-mkconfig
WenhuaChang Aug 21, 2014
5beba50
grub2-btrfs-06-subvol-mount
WenhuaChang Jul 9, 2019
8e6626a
Fallback to old subvol name scheme to support old snapshot config
arvidjaar Jun 21, 2016
15481f3
Grub not working correctly with btrfs snapshots (bsc#1026511)
WenhuaChang May 11, 2017
c491c1a
Add grub_efi_allocate_pool() and grub_efi_free_pool() wrappers.
vathpela Jun 1, 2017
74df415
Use grub_efi_...() memory helpers where reasonable.
vathpela Jun 1, 2017
e003656
Add PRIxGRUB_EFI_STATUS and use it.
vathpela Jun 1, 2017
133e4ca
don't use int for efi status
vathpela Jun 26, 2017
4c09acf
make GRUB_MOD_INIT() declare its function prototypes.
vathpela Jun 26, 2017
c11ef80
Don't guess /boot/efi/ as HFS+ on ppc machines in grub-install
vathpela Apr 20, 2017
3a63a41
20_linux_xen: load xen or multiboot{,2} modules as needed.
vathpela Jul 9, 2019
62cf81c
Make pmtimer tsc calibration not take 51 seconds to fail.
vathpela Nov 7, 2017
ec9364f
align struct efi_variable better...
vathpela Feb 27, 2018
c955984
Add BLS support to grub-mkconfig
vathpela Dec 9, 2016
21a04d4
Don't attempt to backtrace on grub_abort() for grub-emu
martinezjavier Feb 6, 2018
21dfdc9
Add linux and initrd commands for grub-emu
WenhuaChang Feb 6, 2018
102c6c3
Add grub2-switch-to-blscfg
vathpela Mar 15, 2018
bd0561a
make better backtraces
vathpela Jul 9, 2019
49ed986
normal: don't draw our startup message if debug is set
vathpela Nov 9, 2017
c3074e7
Work around some minor include path weirdnesses
vathpela Mar 16, 2018
e57a976
Make it possible to enabled --build-id=sha1
vathpela Jun 25, 2015
c43c3ac
Add grub_qdprintf() - grub_dprintf() without the file+line number.
vathpela Jun 28, 2015
84320f5
Make a "gdb" dprintf that tells us load addresses.
vathpela Jun 25, 2015
6f2cf5a
Fixup for newer compiler
vathpela May 10, 2018
c80d81b
Don't attempt to export the start and _start symbols for grub-emu
martinezjavier May 12, 2018
7b795e0
Fixup for newer compiler
vathpela May 10, 2018
d80dddf
Add support for non-Ethernet network cards
akacprow Jul 10, 2019
f44d4c0
net: read bracketed ipv6 addrs and port numbers
Jul 29, 2016
1a2d590
bootp: New net_bootp6 command
WenhuaChang Jul 10, 2019
21f0962
efinet: UEFI IPv6 PXE support
WenhuaChang Apr 15, 2015
8190e59
grub.texi: Add net_bootp6 doument
WenhuaChang May 5, 2015
2d2aea0
bootp: Add processing DHCPACK packet from HTTP Boot
WenhuaChang Jul 10, 2019
7db75f2
efinet: Setting network from UEFI device path
WenhuaChang Jul 10, 2016
cd380ec
efinet: Setting DNS server from UEFI protocol
WenhuaChang Jul 14, 2016
4b477fe
Support UEFI networking protocols
WenhuaChang Feb 22, 2017
aedbda9
AUDIT-0: http boot tracker bug
Nov 28, 2017
1d95639
grub-editenv: Add "incr" command to increment integer value env. vari…
jwrdegoede Jun 4, 2018
33b6ac2
Add auto-hide menu support
jwrdegoede Jun 6, 2018
b6fe24d
Add grub-set-bootflag utility
jwrdegoede Jun 12, 2018
edb76ac
docs: Add grub-boot-indeterminate.service example
jwrdegoede Jun 19, 2018
5e27b3d
gentpl: add 'disable = ' support
vathpela Jul 11, 2018
71d1881
gentpl: add 'pc' firmware type
vathpela Jul 11, 2019
35fe10c
efinet: also use the firmware acceleration for http
vathpela Jul 30, 2018
bb832c4
efi/http: Make root_url reflect the protocol+hostname of our boot url.
vathpela Jul 30, 2018
6812280
Make it so we can tell configure which cflags utils are built with
vathpela Jun 26, 2018
beef252
module-verifier: make it possible to run checkers on grub-module-veri…
vathpela Aug 1, 2018
de6bb27
Rework how the fdt command builds.
vathpela Jul 11, 2019
f61f20c
Disable non-wordsize allocations on arm
vathpela Aug 2, 2018
0553c69
Prepend prefix when HTTP path is relative
stbenjam Aug 16, 2018
a965338
Make grub_error() more verbose
vathpela Aug 27, 2018
c8d7d56
Make "reset" an alias for the "reboot" command.
vathpela Aug 31, 2018
4332c38
Add a "version" command.
vathpela Sep 11, 2018
f9e94c8
Add more dprintf, and nerf dprintf in script.c
vathpela Sep 11, 2018
1cd845a
arm/arm64 loader: Better memory allocation and error messages.
vathpela Jul 11, 2019
9035d4f
Try to pick better locations for kernel and initrd
vathpela Jul 11, 2019
729e231
Attempt to fix up all the places -Wsign-compare=error finds.
vathpela Jul 11, 2019
eef4baf
Don't use -Wno-sign-compare -Wno-conversion -Wno-error, do use -Wextra.
vathpela Jul 11, 2019
7765a79
x86-efi: Use bounce buffers for reading to addresses > 4GB
vathpela Jul 12, 2019
486cdd4
x86-efi: Re-arrange grub_cmd_linux() a little bit.
vathpela Sep 13, 2018
cfea4ae
x86-efi: Make our own allocator for kernel stuff
vathpela Sep 12, 2018
2b63696
x86-efi: Allow initrd+params+cmdline allocations above 4GB.
vathpela Sep 12, 2018
94344e9
Fix getroot.c's trampolines.
vathpela Sep 28, 2018
222171d
Do not allow stack trampolines, anywhere.
vathpela Jul 12, 2019
e67df2e
Reimplement boot_counter
vathpela Oct 4, 2018
836c66e
Fix menu entry selection based on ID and title
vathpela Oct 19, 2018
343f4aa
Make the menu entry users option argument to be optional
martinezjavier Nov 26, 2018
22a11bf
Add efi-export-env and efi-load-env commands
vathpela Jan 16, 2019
5826f8a
Make it possible to subtract conditions from debug=
vathpela Jan 17, 2019
930b4ad
Export all variables from the initial context when creating a submenu
martinezjavier Jan 22, 2019
d062984
grub.d: Split out boot success reset from menu auto hide script
LorbusChris Apr 2, 2019
1d4e497
Fix systemctl kexec exit status check
martinezjavier Apr 9, 2019
6783ef8
Print grub-emu linux loader messages as debug
martinezjavier Apr 9, 2019
c05a040
Don't assume that boot commands will only return on fail
martinezjavier Apr 9, 2019
2039dd2
Fix undefined references for fdt when building with platform emu
martinezjavier Apr 30, 2019
0fc315c
Do better in bootstrap.conf
vathpela Jul 29, 2019
02e5596
Use git to apply gnulib patches.
vathpela Jul 29, 2019
141fb5d
Fix build error with the fdt module on risc-v
martinezjavier Aug 27, 2019
f8f5940
grub-set-bootflag: Update comment about running as root through pkexec
jwrdegoede Nov 13, 2019
76c5d06
grub-set-bootflag: Write new env to tmpfile and then rename
jwrdegoede Nov 13, 2019
751fdde
grub.d: Fix boot_indeterminate getting set on boot_success=0 boot
jwrdegoede Nov 26, 2019
de7c1f9
Also define GRUB_EFI_MAX_ALLOCATION_ADDRESS for RISC-V
Jan 16, 2020
86949c6
chainloader: Define machine types for RISC-V
Nov 9, 2019
5a525ab
Add start symbol for RISC-V
Nov 9, 2019
8a53f42
bootstrap.conf: Force autogen.sh to use python3
martinezjavier Jan 15, 2020
f667642
efi/http: Export {fw,http}_path variables to make them global
martinezjavier Mar 5, 2020
e2f811a
efi/http: Enclose literal IPv6 addresses in square brackets
martinezjavier Mar 5, 2020
1fa4e30
efi/net: Allow to specify a port number in addresses
martinezjavier Mar 9, 2020
082a8e1
efi/ip4_config: Improve check to detect literal IPv6 addresses
martinezjavier Mar 9, 2020
8970713
efi/net: Print a debug message if parsing the address fails
martinezjavier Mar 10, 2020
2d397ca
kern/term: Also accept F8 as a user interrupt key
martinezjavier Apr 22, 2020
94ab6e5
efi: Set image base address before jumping to the PE/COFF entry point
martinezjavier Apr 23, 2020
cabdf98
tpm: Don't propagate TPM measurement errors to the verifiers layer
martinezjavier May 16, 2020
1c0d2eb
x86-efi: Reduce maximum bounce buffer size to 16 MiB
martinezjavier May 26, 2020
9662b45
http: Prepend prefix when the HTTP path is relative as done in efi/http
martinezjavier Jun 2, 2020
f038819
Fix a missing return in efi-export-env and efi-load-env commands
vathpela Jan 16, 2019
30c3db7
efi+dhcp: fix some allocation error checking.
vathpela Jul 19, 2020
ea7c66b
efi+http: fix some allocation error checking.
vathpela Jul 19, 2020
38f7d15
efi/ip[46]_config.c: fix some potential allocation overflows
vathpela Jul 19, 2020
453d358
efilinux: Fix integer overflows in grub_cmd_initrd
cjwatson Jul 24, 2020
257951c
linuxefi: fail kernel validation without shim protocol.
xnox Jul 22, 2020
71aecd0
Fix const char ** pointers in grub-core/net/bootp.c
vathpela Jul 20, 2020
d737c6c
Fix const char ** pointers in grub-core/net/efi/ip4_config.c
vathpela Jul 20, 2020
f08d14d
Fix const char ** pointers in grub-core/net/efi/ip6_config.c
vathpela Jul 20, 2020
eebd9ed
Fix const char ** pointers in grub-core/net/efi/net.c
vathpela Jul 20, 2020
3ef29b8
Fix const char ** pointers in grub-core/net/efi/pxe.c
vathpela Jul 20, 2020
23a5adf
Add systemd integration scripts to make "systemctl reboot --boot-load…
jwrdegoede Jul 22, 2020
425f139
systemd-integration.sh: Also set old menu_show_once grubenv var
jwrdegoede Jul 23, 2020
f15e744
at_keyboard: use set 1 when keyboard is in Translate mode
rmetrich Dec 3, 2020
4fc4b96
grub-install: disable support for EFI platforms
jhlavac Nov 20, 2020
6f21ada
New --with-debug-timestamps configure flag to prepend debug traces wi…
rmetrich Nov 23, 2019
e13b370
Added debug statements to grub_disk_open() and grub_disk_close() on s…
rmetrich Nov 23, 2019
48fb940
Introduce function grub_debug_is_enabled(void) returning 1 if 'debug'…
rmetrich Nov 25, 2019
2ced2d2
Don't clear screen when debugging is enabled
rmetrich Nov 23, 2019
c21daed
grub_file_* instrumentation (new 'file' debug tag)
rmetrich Nov 29, 2019
6def112
ieee1275: Avoiding many unecessary open/close
Dec 14, 2020
8cd842d
ieee1275/powerpc: implements fibre channel discovery for ofpathname
Dec 14, 2020
880f814
ieee1275/powerpc: enables device mapper discovery
Dec 14, 2020
8c783c0
Add 'at_keyboard_fallback_set' var to force the set manually
rmetrich Dec 18, 2020
4f80eed
Add suport for signing grub with an appended signature
RashmicaG Jun 11, 2020
a22e463
docs/grub: Document signing grub under UEFI
daxtens Aug 14, 2020
b03f804
docs/grub: Document signing grub with an appended signature
daxtens Aug 14, 2020
7c5a4a3
dl: provide a fake grub_dl_set_persistent for the emu target
daxtens Jul 29, 2020
81b48dc
pgp: factor out rsa_pad
daxtens Oct 1, 2020
1bdd0fe
crypto: move storage for grub_crypto_pk_* to crypto.c
daxtens Oct 2, 2020
4bfc9de
posix_wrap: tweaks in preparation for libtasn1
daxtens May 1, 2020
82fb9da
libtasn1: import libtasn1-4.16.0
daxtens Jun 10, 2020
1294369
libtasn1: disable code not needed in grub
daxtens May 1, 2020
6d6fc46
libtasn1: changes for grub compatibility
daxtens May 1, 2020
6b760ad
libtasn1: compile into asn1 module
daxtens Jun 5, 2020
c52159d
test_asn1: test module for libtasn1
daxtens Jun 10, 2020
d6d495c
grub-install: support embedding x509 certificates
deece Jul 6, 2020
e3b25f3
appended signatures: import GNUTLS's ASN.1 description files
daxtens Jul 29, 2020
c3b35d2
appended signatures: parse PKCS#7 signedData and X.509 certificates
daxtens Jul 29, 2020
73f3c14
appended signatures: support verifying appended signatures
daxtens Jul 29, 2020
dec3c89
appended signatures: verification tests
daxtens Jul 29, 2020
df40356
appended signatures: documentation
daxtens Oct 1, 2020
737b82e
ieee1275: enter lockdown based on /ibm,secure-boot
daxtens Sep 28, 2020
e1191d4
ieee1275: drop HEAP_MAX_ADDR, HEAP_MIN_SIZE
daxtens Apr 14, 2021
9106766
ieee1275: claim more memory
daxtens Apr 15, 2020
9b37443
ieee1275: request memory with ibm,client-architecture-support
daxtens Apr 16, 2021
b0d3225
appendedsig/x509: Also handle the Extended Key Usage extension
martinezjavier May 8, 2021
5e92f68
ieee1275/ofdisk: retry on open failure
Mar 10, 2021
42cd917
01_menu_auto_hide.in: fix a then/than typo
jnpkrn Jun 11, 2021
b5e181b
Fix disabling grub-rpm-sort
scfc Jun 11, 2021
ebfc630
Don't check for rpmvercmp in librpm
martinezjavier Jun 11, 2021
900c6b3
Allow chainloading EFI apps from loop mounts.
xnox Jun 11, 2021
9cd94b2
efinet: Add DHCP proxy support
iphands Jun 8, 2021
d711ad8
fs/ext2: Ignore checksum seed incompat feature
martinezjavier Jun 10, 2021
9354cf0
Don't update the cmdline when generating legacy menuentry commands
martinezjavier Jun 17, 2021
163ac17
Suppress gettext error message
pfsmorigo Jun 29, 2021
d3abf9b
grub-boot-success.timer: Only run if not in a container
Jun 30, 2021
bba6717
grub-set-password: Always use /boot/grub2/user.cfg as password default
martinezjavier Jul 5, 2021
150a08d
Remove outdated URL for BLS document
martinezjavier Jul 5, 2021
5dfc230
templates: Check for EFI at runtime instead of config generation time
martinezjavier Jul 5, 2021
d1d3347
efi: Print an error if boot to firmware setup is not supported
martinezjavier Jul 5, 2021
188f3f9
arm64: Fix EFI loader kernel image allocation
ozbenh Aug 2, 2021
dd7a530
normal/main: Discover the device to read the config from as a fallback
martinezjavier Aug 30, 2021
4e06fe2
powerpc: adjust setting of prefix for signed binary case
daxtens Jul 19, 2021
c8ed45f
powerpc: fix prefix + signed grub special case for PowerVM
daxtens Aug 16, 2021
31c9e14
Arm: check for the PE magic for the compiled arch
vathpela Sep 9, 2021
92099a5
fs/xfs: Fix unreadable filesystem with v4 superblock
ErwanAliasr1 Aug 25, 2021
c931c3a
Print module name on license check failure
frozencemetery Oct 12, 2021
5736169
powerpc-ieee1275: load grub at 4MB, not 2MB
daxtens Oct 21, 2021
583bc3a
grub-mkconfig: restore umask for grub.cfg
Dec 3, 2021
44a58e3
commands/search: Fix bug stopping iteration when --no-floppy is used
rmetrich Feb 8, 2022
bea473b
search: new --efidisk-only option on EFI systems
rmetrich Feb 8, 2022
98b6e23
efi: new 'connectefi' command
rmetrich Feb 15, 2022
9f825eb
powerpc: do CAS in a more compatible way
daxtens Apr 8, 2022
f3df9f1
powerpc: prefix detection: support device names with commas
daxtens Mar 24, 2022
f2e024f
ibmvtpm: Add support for trusted boot using a vTPM 2.0
stefanberger Mar 15, 2020
3b455d1
make ofdisk_retries optional
Mar 24, 2022
4199450
loader/efi/chainloader: grub_load_and_start_image doesn't load and start
chrisccoulson Apr 28, 2022
8e93db7
loader/efi/chainloader: simplify the loader state
chrisccoulson Apr 29, 2022
5397379
commands/boot: Add API to pass context to loader
chrisccoulson Apr 29, 2022
c2f04f5
loader/efi/chainloader: Use grub_loader_set_ex
chrisccoulson Apr 29, 2022
386f271
loader/i386/efi/linux: Avoid a use-after-free in the linuxefi loader
chrisccoulson May 2, 2022
a032c7c
loader/i386/efi/linux: Use grub_loader_set_ex
chrisccoulson May 2, 2022
3cd2bb8
loader/i386/efi/linux: Fix a memory leak in the initrd command
chrisccoulson May 3, 2022
70545d2
kern/efi/sb: Reject non-kernel files in the shim_lock verifier
julian-klode Dec 2, 2021
26bf2cb
kern/file: Do not leak device_name on error in grub_file_open()
daxtens Jun 24, 2021
0e641aa
video/readers/png: Abort sooner if a read operation fails
daxtens Jul 6, 2021
7e99e36
video/readers/png: Refuse to handle multiple image headers
daxtens Jul 6, 2021
5325768
video/readers/png: Drop greyscale support to fix heap out-of-bounds w…
daxtens Jul 6, 2021
e84fdd3
video/readers/png: Avoid heap OOB R/W inserting huff table items
daxtens Jul 6, 2021
3a318c7
video/readers/png: Sanity check some huffman codes
daxtens Jul 6, 2021
93b0f3e
video/readers/jpeg: Abort sooner if a read operation fails
daxtens Jun 28, 2021
461fe74
video/readers/jpeg: Do not reallocate a given huff table
daxtens Jun 28, 2021
2ddb41a
video/readers/jpeg: Refuse to handle multiple start of streams
daxtens Jun 28, 2021
9138091
video/readers/jpeg: Block int underflow -> wild pointer write
daxtens Jul 7, 2021
aa55171
normal/charset: Fix array out-of-bounds formatting unicode for display
daxtens Jul 13, 2021
7075e72
net/netbuff: Block overly large netbuff allocs
daxtens Mar 8, 2022
38239fb
net/ip: Do IP fragment maths safely
daxtens Dec 20, 2021
cb22dfe
net/dns: Fix double-free addresses on corrupt DNS response
daxtens Sep 15, 2021
b503527
net/dns: Don't read past the end of the string we're checking against
daxtens Dec 20, 2021
04ee4b4
net/tftp: Prevent a UAF and double-free from a failed seek
daxtens Sep 19, 2021
b221fe5
net/tftp: Avoid a trivial UAF
daxtens Jan 18, 2022
79c2a01
net/http: Do not tear down socket if it's already been torn down
daxtens Mar 1, 2022
26b463d
net/http: Fix OOB write for split http headers
daxtens Mar 8, 2022
4f1c276
net/http: Error out on headers with LF without CR
daxtens Mar 8, 2022
f480e1d
fs/f2fs: Do not read past the end of nat journal entries
SudhakarKuppusamy1 Apr 6, 2022
e9d4627
fs/f2fs: Do not read past the end of nat bitmap
SudhakarKuppusamy1 Apr 6, 2022
7a0fcf8
fs/f2fs: Do not copy file names that are too long
SudhakarKuppusamy1 Apr 6, 2022
6c30dec
fs/btrfs: Fix several fuzz issues with invalid dir item sizing
darrenkenny Mar 29, 2022
cf2f589
fs/btrfs: Fix more ASAN and SEGV issues found with fuzzing
darrenkenny Mar 29, 2022
fe06e6c
fs/btrfs: Fix more fuzz issues related to chunks
darrenkenny Apr 7, 2022
f15b512
misc: Make grub_min() and grub_max() more resilient.
vathpela Mar 21, 2022
b32383c
ReiserFS: switch to using grub_min()/grub_max()
vathpela Apr 21, 2022
4d8a36d
misc: make grub_boot_time() also call grub_dprintf("boot",...)
vathpela Mar 24, 2022
15b1154
modules: make .module_license read-only
vathpela Feb 24, 2022
959d1d4
modules: strip .llvm_addrsig sections and similar.
vathpela Feb 24, 2022
b5ccc59
modules: Don't allocate space for non-allocable sections.
vathpela Mar 21, 2022
394f78f
pe: add the DOS header struct and fix some bad naming.
vathpela Mar 25, 2022
057ffee
EFI: allocate kernel in EFI_RUNTIME_SERVICES_CODE instead of EFI_LOAD…
vathpela Feb 9, 2022
31f8e2a
modules: load module sections at page-aligned addresses
vathpela Mar 21, 2022
9d391a3
nx: add memory attribute get/set API
vathpela Mar 22, 2022
8327063
nx: set page permissions for loaded modules.
vathpela Mar 21, 2022
351d603
nx: set attrs in our kernel loaders
vathpela Mar 22, 2022
8830eec
nx: set the nx compatible flag in EFI grub images
vathpela Mar 22, 2022
d197e70
Make debug=file show which file filters get run.
vathpela Jul 29, 2022
17af2e5
efi: make the default arena most of ram
vathpela Jul 29, 2022
50b2ca3
efi: use enumerated array positions for our allocation choices
vathpela Aug 1, 2022
dc11963
efi: split allocation policy for kernel vs initrd memories.
vathpela Aug 1, 2022
f4fb26c
efi: allocate the initrd within the bounds expressed by the kernel
vathpela Aug 1, 2022
66e1c92
efi: use EFI_LOADER_(CODE|DATA) for kernel and initrd allocations
vathpela Aug 1, 2022
39a8623
BLS: create /etc/kernel/cmdline during mkconfig
frozencemetery Aug 2, 2022
1639f43
ieee1275: implement vec5 for cas negotiation
Aug 25, 2022
73605cd
squish: don't dup rhgb quiet, check mtimes
frozencemetery Aug 17, 2022
238021e
squish: give up on rhgb quiet
frozencemetery Aug 17, 2022
f08660d
squish: BLS: only write /etc/kernel/cmdline if writable
jlebon Aug 17, 2022
cc78de8
Revert "efi: new 'connectefi' command"
rmetrich Sep 1, 2022
fe1c6f0
efi: new 'eficonnect' command
rmetrich Jan 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
153 changes: 153 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ widthspec.bin
/stamp-h1
/syslinux_test
/tar_test
/test_asn1
/test_sha512sum
/test_unset
/tests/syslinux/ubuntu10.04_grub.cfg
Expand All @@ -275,3 +276,155 @@ widthspec.bin
/xfs_test
/xzcompress_test
/zfs_test
=======
# things ./autogen.sh will create
/Makefile.utilgcry.def
/ABOUT-NLS
/aclocal.m4
/autom4te.cache
/build-aux
/configure
/gnulib
/grub-core/lib/gnulib/
/Makefile

# things very common editors create that we never want
*~
.*.sw?
*.patch

# stuff you're likely to make while building test trees
grub.cfg
/build*/

# built objects across the whole tree
Makefile.in
*.a
*.am
*.efi
*.exec
*.image
*.img
*.info
*.lst
*.marker
/m4
*.mod
*.module
*.o
*.pf2
*.yy.[ch]
.deps/
.deps-core/
.deps-util/
.dirstamp

# next are things you get if you do ./configure in the topdir (for e.g.
# "make dist" invocation.
/config-util.h
/config.h
/include/grub/cpu
/include/grub/machine
/INSTALL
/INSTALL.grub
/po/Makefile.in.in
/po/Makevars
/po/Makevars.template
/po/POTFILES
/po/Rules-quot
/stamp-h
/stamp-h1
bootstrap.log
config.log
config.status

# stuff "make dist" creates
ChangeLog
grub-*.tar
grub-*.tar.*

# stuff "make" creates
/[[:digit:]][[:digit:]]_?*
/ascii.h
/build-grub-gen-asciih
/build-grub-gen-widthspec
/build-grub-mkfont
/config-util.h.in
/garbage-gen
/grub*-bios-setup
/grub*-bios-setup.8
/grub*-editenv
/grub*-editenv.1
/grub*-file
/grub*-file.1
/grub*-fs-tester
/grub*-fstest
/grub*-fstest.1
/grub*-get-kernel-settings
/grub*-get-kernel-settings.3
/grub*-glue-efi
/grub*-glue-efi.1
/grub*-install
/grub*-install.8
/grub*-kbdcomp
/grub*-kbdcomp.1
/grub*-macbless
/grub*-macbless.8
/grub*-menulst2cfg
/grub*-menulst2cfg.1
/grub*-mount
/grub*-mount.1
/grub*-mkconfig
/grub*-mkconfig.8
/grub*-mkconfig_lib
/grub*-mkfont
/grub*-mkfont.1
/grub*-mkimage
/grub*-mkimage.1
/grub*-mklayout
/grub*-mklayout.1
/grub*-mknetdir
/grub*-mknetdir.1
/grub*-mkpasswd-pbkdf2
/grub*-mkpasswd-pbkdf2.1
/grub*-mkrelpath
/grub*-mkrelpath.1
/grub*-mkrescue
/grub*-mkrescue.1
/grub*-mkstandalone
/grub*-mkstandalone.1
/grub*-ofpathname
/grub*-ofpathname.8
/grub*-probe
/grub*-probe.8
/grub*-reboot
/grub*-reboot.8
/grub*-render-label
/grub*-render-label.1
/grub*-rpm-sort
/grub*-rpm-sort.8
/grub*-script-check
/grub*-script-check.1
/grub*-set-bootflag
/grub*-set-bootflag.1
/grub*-set-default
/grub*-set-default.8
/grub*-set-password
/grub*-set-password.8
/grub*-shell
/grub*-shell-tester
/grub*-sparc64-setup
/grub*-sparc64-setup.8
/grub*-syslinux2cfg
/grub*-syslinux2cfg.1
/grub*-switch-to-blscfg
/grub*-switch-to-blscfg.8
/grub_fstest.pp
/grub_fstest_init.c
/grub_fstest_init.lst
/grub_script.tab.[ch]
/libgrub.pp
/libgrub_a_init.c
/libgrub_a_init.lst
/stamp-h.in
/widthspec.h
115 changes: 115 additions & 0 deletions Makefile.util.def
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ library = {
common = grub-core/partmap/msdos.c;
common = grub-core/fs/proc.c;
common = grub-core/fs/archelp.c;
common = grub-core/kern/backtrace.c;

x86 = grub-core/kern/i386/backtrace.c;
i386_xen = grub-core/kern/i386/backtrace.c;
x86_64_xen = grub-core/kern/i386/backtrace.c;
arm64 = grub-core/kern/arm64/backtrace.c;
};

library = {
Expand Down Expand Up @@ -452,6 +458,30 @@ script = {
installdir = grubconf;
};

script = {
name = '08_fallback_counting';
common = util/grub.d/08_fallback_counting.in;
installdir = grubconf;
};

script = {
name = '12_menu_auto_hide';
common = util/grub.d/12_menu_auto_hide.in;
installdir = grubconf;
};

script = {
name = '14_menu_show_once';
common = util/grub.d/14_menu_show_once.in;
installdir = grubconf;
};

script = {
name = '01_users';
common = util/grub.d/01_users.in;
installdir = grubconf;
};

script = {
name = '10_windows';
common = util/grub.d/10_windows.in;
Expand Down Expand Up @@ -494,6 +524,12 @@ script = {
condition = COND_HOST_LINUX;
};

script = {
name = '10_reset_boot_success';
common = util/grub.d/10_reset_boot_success.in;
installdir = grubconf;
};

script = {
name = '10_xnu';
common = util/grub.d/10_xnu.in;
Expand All @@ -508,6 +544,13 @@ script = {
condition = COND_HOST_LINUX;
};

script = {
name = '20_ppc_terminfo';
common = util/grub.d/20_ppc_terminfo.in;
installdir = grubconf;
condition = COND_HOST_LINUX;
};

script = {
name = '30_os-prober';
common = util/grub.d/30_os-prober.in;
Expand All @@ -532,6 +575,27 @@ script = {
installdir = grubconf;
};

script = {
name = 'grub-systemd-integration.service';
common = util/systemd/grub-systemd-integration.service.in;
installdir = systemdunit;
condition = COND_HOST_LINUX;
};

script = {
name = 'systemd-integration.sh';
common = util/systemd/systemd-integration.sh.in;
installdir = grublibexec;
condition = COND_HOST_LINUX;
};

script = {
name = '10-grub-logind-service.conf';
common = util/systemd/10-grub-logind-service.conf.in;
installdir = systemd_logind_service_d;
condition = COND_HOST_LINUX;
};

program = {
mansection = 1;
name = grub-mkrescue;
Expand Down Expand Up @@ -696,13 +760,37 @@ program = {
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

program = {
name = grub-rpm-sort;
mansection = 8;
installdir = sbin;

common = grub-core/kern/emu/misc.c;
common = grub-core/kern/emu/argp_common.c;
common = grub-core/osdep/init.c;
common = util/misc.c;
common = util/grub-rpm-sort.c;

ldadd = libgrubkern.a;
ldadd = grub-core/lib/gnulib/libgnu.a;
ldadd = '$(LIBDEVMAPPER) $(LIBRPM)';
condition = COND_GRUB_RPM_SORT;
};

script = {
name = grub-mkconfig;
common = util/grub-mkconfig.in;
mansection = 8;
installdir = sbin;
};

script = {
name = grub-get-kernel-settings;
common = util/grub-get-kernel-settings.in;
mansection = 3;
installdir = sbin;
};

script = {
name = grub-set-default;
common = util/grub-set-default.in;
Expand All @@ -717,6 +805,13 @@ script = {
installdir = sbin;
};

script = {
name = grub-set-password;
common = util/grub-set-password.in;
mansection = 8;
installdir = sbin;
};

script = {
name = grub-mkconfig_lib;
common = util/grub-mkconfig_lib.in;
Expand Down Expand Up @@ -1211,6 +1306,12 @@ script = {
common = tests/syslinux_test.in;
};

script = {
testcase;
name = test_asn1;
common = tests/test_asn1.in;
};

program = {
testcase;
name = example_unit_test;
Expand Down Expand Up @@ -1321,6 +1422,13 @@ program = {
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

script = {
name = grub-switch-to-blscfg;
common = util/grub-switch-to-blscfg.in;
mansection = 8;
installdir = sbin;
};

program = {
name = grub-glue-efi;
mansection = 1;
Expand Down Expand Up @@ -1383,3 +1491,10 @@ program = {
ldadd = grub-core/lib/gnulib/libgnu.a;
ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
};

program = {
name = grub-set-bootflag;
installdir = sbin;
mansection = 1;
common = util/grub-set-bootflag.c;
};
5 changes: 4 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ New in 2.06:
* BootHole and BootHole2 fixes.
* ...and tons of other fixes and cleanups...

* New/improved platform support:
* New `eficonnect' command on EFI platforms.

New in 2.04:

* GCC 8 and 9 support.
Expand Down Expand Up @@ -98,7 +101,7 @@ New in 2.02:
* Prefer pmtimer for TSC calibration.

* New/improved platform support:
* New `efifwsetup' and `lsefi' commands on EFI platforms.
* New `efifwsetup', `lsefi' commands on EFI platforms.
* New `cmosdump' and `cmosset' commands on platforms with CMOS support.
* New command `pcidump' for PCI platforms.
* Improve opcode parsing in ACPI halt implementation.
Expand Down
19 changes: 19 additions & 0 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,25 @@ if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
fi
])

dnl Supply --build-id=sha1 to ld if building modules.
dnl This suppresses warnings from ld on some systems
AC_DEFUN([grub_PROG_LD_BUILD_ID_SHA1],
[AC_MSG_CHECKING([whether linker accepts --build-id=sha1])
AC_CACHE_VAL(grub_cv_prog_ld_build_id_sha1,
[save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_prog_ld_build_id_sha1=yes],
[grub_cv_prog_ld_build_id_sha1=no])
LDFLAGS="$save_LDFLAGS"
])
AC_MSG_RESULT([$grub_cv_prog_ld_build_id_sha1])

if test "x$grub_cv_prog_ld_build_id_sha1" = xyes; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=sha1"
fi
])

dnl Check nm
AC_DEFUN([grub_PROG_NM_WORKS],
[AC_MSG_CHECKING([whether nm works])
Expand Down
Loading