| 59bfc694 | 29-Jul-2024 |
Warner Losh <[email protected]> |
stand: Add "Loader needs updating" to the first menu item"
When the boot loader version is too old, add a warning to the boot menu to maybe catch people's attention.
Use the correct loader code tha
stand: Add "Loader needs updating" to the first menu item"
When the boot loader version is too old, add a warning to the boot menu to maybe catch people's attention.
Use the correct loader code that adds an inactive highlighted menu item indicating that an update is needed.
Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D45890
(cherry picked from commit 0eac99f76ec31270f902cc2a0ff5ae4b5b606a65) (cherry picked from commit 7cb65be96d47cbe0b740266bc633d272fc4c5e6b)
show more ...
|
| 7ffa3b0f | 29-Jul-2024 |
Warner Losh <[email protected]> |
Revert "loader/lua: Remove workaround for command_error"
This reverts commit 552f3072af54820cf1805f712e2567bc1b7f046d.
loader.command_error was added just after 11.2, but appears to not have been b
Revert "loader/lua: Remove workaround for command_error"
This reverts commit 552f3072af54820cf1805f712e2567bc1b7f046d.
loader.command_error was added just after 11.2, but appears to not have been back ported to 11.x. 11.0 was the first lua loader release, so keep this compat shim until we sort out what to do.
MFC After: 3 days Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D45883
(cherry picked from commit 809edb3636a5494ad7d3dfff910e0aab89d83442)
show more ...
|
| 598b9677 | 29-Jul-2024 |
Warner Losh <[email protected]> |
Revert "loader/lua: Remove compat shim for loader.lua_path"
This reverts commit ab97d42addae97a389c6f22d6bba62ed954bb8e7.
There's too many people in the field with FreeBSD 12.0 loader.efi that stub
Revert "loader/lua: Remove compat shim for loader.lua_path"
This reverts commit ab97d42addae97a389c6f22d6bba62ed954bb8e7.
There's too many people in the field with FreeBSD 12.0 loader.efi that stubbed their toe on upgrading to 14.1 since they'd not updated loader.efi. While we sort out that mess, add back this workaround. Can revisit after 14.2 maybe.
MFC After: 3 days Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D45882
(cherry picked from commit 522a65a8d97a0d6b634266f1b4a89aa8f374279c)
show more ...
|
| 64355a9c | 29-Feb-2024 |
Warner Losh <[email protected]> |
loader/lua: Remove workaround for command_error
loader.command_error was available prior to stable/12 branching. No need to check if it is available or not.
Sponsored by: Netflix Reviewed by: kev
loader/lua: Remove workaround for command_error
loader.command_error was available prior to stable/12 branching. No need to check if it is available or not.
Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44144
(cherry picked from commit 552f3072af54820cf1805f712e2567bc1b7f046d)
show more ...
|
| 216c56ff | 29-Feb-2024 |
Warner Losh <[email protected]> |
loader/lua: Remove compat shim for loader.lua_path
loader.lua_path was committed before stable/13 was branched, and merged in to for 12.2. Remove workaround for it not being present.
Sponsored by:
loader/lua: Remove compat shim for loader.lua_path
loader.lua_path was committed before stable/13 was branched, and merged in to for 12.2. Remove workaround for it not being present.
Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44143
(cherry picked from commit ab97d42addae97a389c6f22d6bba62ed954bb8e7)
show more ...
|
| 71969b96 | 29-Feb-2024 |
Warner Losh <[email protected]> |
loader/lua: Remove pager shim
Just after 12.2 and before the stable/13 branch, kevans added lpager.c to provide a pager interface for commands written in lua. It was merged into 12.3. Now that 12.2
loader/lua: Remove pager shim
Just after 12.2 and before the stable/13 branch, kevans added lpager.c to provide a pager interface for commands written in lua. It was merged into 12.3. Now that 12.2 is long since EOL, we can remove the pager shim here. Nobody needs that old loader + new lua scripts. Plus only one command is affected.
Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44142
(cherry picked from commit 8b9178cd0d35ff2beafebdd51c8c44ba2b5aeb0f)
show more ...
|
| 19388dd2 | 16-Feb-2024 |
Warner Losh <[email protected]> |
loader: Move drawer.lua over to gfx table.
Drawer.lua is the only bit of lua code in the base that uses any of the functons moved from the loader table to the gfx table. Move the main code to using
loader: Move drawer.lua over to gfx table.
Drawer.lua is the only bit of lua code in the base that uses any of the functons moved from the loader table to the gfx table. Move the main code to using the gfx dispatch. Add compat code for running on old loaders that creates the newer-style gfx table with the term_* functions we call in it populated. This will even work on the super old versions of the loader that don't have them (we'll still skip using them).
Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D43908
(cherry picked from commit 0fd98b8a7691b4f11e1bfbcb53a3a7c68d7c1fb7)
show more ...
|
| cfe4f061 | 10-Feb-2024 |
Warner Losh <[email protected]> |
loader: Document the lua loader table.
Document all the public functions from the "loader" table.
Sponsored by: Netflix Reviewed by: pauamma_gundo.com, tsoome, kevans Differential Revision: https
loader: Document the lua loader table.
Document all the public functions from the "loader" table.
Sponsored by: Netflix Reviewed by: pauamma_gundo.com, tsoome, kevans Differential Revision: https://reviews.freebsd.org/D43701
(cherry picked from commit 621dae89f3c70b86bef255a621a76bf553f733ff)
show more ...
|
| a25531db | 21-Dec-2023 |
Stéphane Rochoy <[email protected]> |
stand/lua: always allow overriding with local config files
Loader now also read configuration files listed in local_loader_conf_files. Files listed here are the last ones read. And /boot/loader.conf
stand/lua: always allow overriding with local config files
Loader now also read configuration files listed in local_loader_conf_files. Files listed here are the last ones read. And /boot/loader.conf.local was moved from loader_conf_files to local_loader_conf_files leaving only loader.conf and device.hints in loader_conf_files by default.
The idea is to ensure local_loader_conf_files, i.e., /boot/loader.conf.local, can always be used to override other user defined settings.
So the sequencing is now as follow:
1. Bootstrap: /boot/defaults/loader.conf
2. Read loader_conf_files files: /boot/device.hints /boot/loader.conf
3. Read loader_conf_dirs files: /boot/loader.conf.d/*.conf
4. And finally, rread local_loader_conf_files files: /boot/loader.conf.local
Reviewed by: imp, kevans Pull Request: https://github.com/freebsd/freebsd-src/pull/759
[[ The commit, revert, recommit has been squashed down to record the merge ]] (cherry picked from commit c475e61f66fe8fe939e18ec7821c2340569f3271) (cherry picked from commit 5fdf01dbeef1f64f8c446561498d662702451ac1) (cherry picked from commit d3d0b735571d9562812ce5b343a6e91f7a795dbe)
show more ...
|
| 5417db3a | 24-Nov-2023 |
Warner Losh <[email protected]> |
stand: Retire setting hw.eisa_slots.
When the eisa code was removed in 2017, prior to the stable/12 branch, setting hw.eisa_slots became a nop. The oldest supported branch doesn't have eisa at all.
stand: Retire setting hw.eisa_slots.
When the eisa code was removed in 2017, prior to the stable/12 branch, setting hw.eisa_slots became a nop. The oldest supported branch doesn't have eisa at all. The need to set it manually on boot disappeared largely by 2000...
Sponsored by: Netflix
(cherry picked from commit 21795c374aceb685dbdb1bd18c7a5c41c3cf0baf)
show more ...
|
| 9408d0ba | 21-Nov-2023 |
Warner Losh <[email protected]> |
stand: bandaide for acpi
Old binaries do not set acpi.rsdp early enough. So when we boot with an older loader.efi from an ESP that's not been updated, we assume there's no ACPI on this system. This
stand: bandaide for acpi
Old binaries do not set acpi.rsdp early enough. So when we boot with an older loader.efi from an ESP that's not been updated, we assume there's no ACPI on this system. This is unwise. Put a band-aide on this until we can implement a proper 'feature' variable that the binary reports so we can do conditionals for things like this in the future.
This is at best a rapid-response stop-gap.
Glanced at by: kevans Sponsored by: Netflix
(cherry picked from commit 0abe05aeac29d99786401b9078e97dcead35f7f3)
show more ...
|
| 16c09de8 | 20-Nov-2023 |
R. Christian McDonald <[email protected]> |
loader: improve lua ACPI detection and handling
This is a follow-up patch to https://reviews.freebsd.org/D42459 that modifies the loader lua to use the correct loader variables for determining ACPI
loader: improve lua ACPI detection and handling
This is a follow-up patch to https://reviews.freebsd.org/D42459 that modifies the loader lua to use the correct loader variables for determining ACPI availability.
This also fixes a bug where ACPI can be inadvertently disabled when setting System Defaults at the loader menu.
Reviewed by: imp, kevans Approved by: kp Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D42483
(cherry picked from commit e0f3dc82727f236b0bea495d8a4d6e6dc630854d)
show more ...
|
| 15b946de | 13-Dec-2023 |
Kyle Evans <[email protected]> |
loader: lua: remove the default kernel if it doesn't exist
The `kernel` env var provides the default kernel, usually "kernel". It may be the case that the user doesn't have a "kernel" kernel, just
loader: lua: remove the default kernel if it doesn't exist
The `kernel` env var provides the default kernel, usually "kernel". It may be the case that the user doesn't have a "kernel" kernel, just "kernel.*" kernels, but have left `kernel` to the default because we autodetect entries by default anyways.
If we're doing autodetection, take note of whether the default kernel exists or not and remove it from the list if it doesn't and we had found any other kernels. We avoid it in the #kernels == 1 case because something fishy has likely happened and we should just trust the configuration.
Reviewed by: imp, manu
(cherry picked from commit d04415c520b031fb8eb93cb252e4acee66149c87)
show more ...
|