Page MenuHomeFreeBSD

lua loader: Auto detect eligible list of kernels to boot
ClosedPublic

Authored by cem on Feb 17 2018, 9:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 3:04 AM
Unknown Object (File)
Wed, Dec 4, 12:31 AM
Unknown Object (File)
Fri, Nov 29, 12:48 PM
Unknown Object (File)
Oct 17 2024, 4:01 AM
Unknown Object (File)
Oct 17 2024, 4:01 AM
Unknown Object (File)
Oct 10 2024, 11:01 AM
Unknown Object (File)
Oct 4 2024, 6:52 PM
Unknown Object (File)
Sep 30 2024, 2:22 PM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks really cool!

stand/lua/core.lua
149 ↗(On Diff #39444)

How close / far from the standard lfs definition is this?

This revision is now accepted and ready to land.Feb 17 2018, 10:00 PM
In D14419#302195, @imp wrote:

This looks really cool!

Thanks!

stand/lua/core.lua
149 ↗(On Diff #39444)

lfs.dir() is identical, I think.

lfs.attributes() is slightly different in that we don't represent permissions as "drwxrwxrwx" and instead just dump an octal string out. That could be made more compliant if it's important.

(And: we're missing all APIs except those two.)

Otherwise, it should match the standard lfs exactly.

Looks good to me. =) Deduping the kernel listing was on my TODO list, along with fixing the module_path foo.

Looks good to me. =) Deduping the kernel listing was on my TODO list, along with fixing the module_path foo.

Thanks! I'm not sure I understand / did anything about module_path foo, can you elaborate a little?

In D14419#302234, @cem wrote:

Looks good to me. =) Deduping the kernel listing was on my TODO list, along with fixing the module_path foo.

Thanks! I'm not sure I understand / did anything about module_path foo, can you elaborate a little?

Nothing you've touched here, but a little further down [1] we add kernel directory to module_path, but we build off of getenv('module_path') and end up with multiple kernel directories in the path. Ideally we'd cache the module_path the first time and add the current kernel path to that every time.

https://svnweb.freebsd.org/base/head/stand/lua/config.lua?revision=329457&view=markup#l296

(while flipping through the kernel selector, that is)

Nothing you've touched here, but a little further down [1] we add kernel directory to module_path, but we build off of getenv('module_path') and end up with multiple kernel directories in the path. Ideally we'd cache the module_path the first time and add the current kernel path to that every time.

https://svnweb.freebsd.org/base/head/stand/lua/config.lua?revision=329457&view=markup#l296

Oh, ok. I'm going to leave that alone in this revision, if that's alright.

This revision was automatically updated to reflect the committed changes.