Skip to contentSkip to conversation

Why Lua support was removed

DISCUSSION Tianjia Zhang 3 participants 5 messages Oct 14, 2020 – Oct 15, 2020

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I want to use lua to do some logic on grub, which needs to be embedded in the lua interpreter. I found that grub supports lua as early as 2009, and only a few months later, the lua was removed. I checked the Changelog and git log, the reason for removal was not found, I want to know why the support for lua was removed.

Judging from the current situation, if grub wants to support a scripting language, lua is undoubtedly the most suitable and completely feasible. Is it acceptable to support lua in grub now? If possible, I will consider doing this.

Best regards,
Tianjia

#1 lore raw
Quoted 10 lines · Tianjia Zhang

I want to use lua to do some logic on grub, which needs to be embedded in the lua interpreter. I found that grub supports lua as early as 2009, and only a few months later, the lua was removed. I checked the Changelog and git log, the reason for removal was not found, I want to know why the support for lua was removed.

Judging from the current situation, if grub wants to support a scripting language, lua is undoubtedly the most suitable and completely feasible. Is it acceptable to support lua in grub now? If possible, I will consider doing this.

Looking at the grub source in Debian I see:

grub-2.04/debian/grub-extras/lua/

It however appears disabled in the build of the package. I guess it stopped working at some point and was dropped if it was ever actually enabled. It is not mentioned in any way in the changelog making me think it was added at some point but never enabled.

Was it ever actually part of grub, or was it just an external add-on you could use with it?

Signature · 1 line
Len Sorensen
#2 lore raw
In reply to Tianjia Zhang

Lua is not part of official grub. You need to add grub-contrib for it to work. If you still have problem even with grub-contrib enabled please let me know

Quoted 21 lines · On Wed, 14 Oct 2020, 10:34 Tianjia Zhang, <[email protected]>…

Hi everyone,

I want to use lua to do some logic on grub, which needs to be embedded in the lua interpreter. I found that grub supports lua as early as 2009, and only a few months later, the lua was removed. I checked the Changelog and git log, the reason for removal was not found, I want to know why the support for lua was removed.

Judging from the current situation, if grub wants to support a scripting language, lua is undoubtedly the most suitable and completely feasible. Is it acceptable to support lua in grub now? If possible, I will consider doing this.

Best regards,
Tianjia

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw

Hi,

I know, but it seems that the functions that grub exports to lua are relatively small, but it is really cool to be able to use lua in grub. Thanks for your reply.

Best regards,
Tianjia

#4 lore raw
In reply to Tianjia Zhang

Here is the repo: https://savannah.nongnu.org/git/?group=grub-extras
As to why is not in main repo:
1) it's a different license
2) it's a large codebase compared to grub itself
3) it's useful only in edge cases

So it was kept in separate repo
If you have any trouble please let me know

Quoted 21 lines · On Wed, 14 Oct 2020, 10:34 Tianjia Zhang, <[email protected]>…

Hi everyone,

I want to use lua to do some logic on grub, which needs to be embedded in the lua interpreter. I found that grub supports lua as early as 2009, and only a few months later, the lua was removed. I checked the Changelog and git log, the reason for removal was not found, I want to know why the support for lua was removed.

Judging from the current situation, if grub wants to support a scripting language, lua is undoubtedly the most suitable and completely feasible. Is it acceptable to support lua in grub now? If possible, I will consider doing this.

Best regards,
Tianjia

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel