Bug 1214361 - perl-Bootloader: rewrite update-bootloader in shell
Summary: perl-Bootloader: rewrite update-bootloader in shell
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Bootloader (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Steffen Winterfeldt
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1170066
  Show dependency treegraph
 
Reported: 2023-08-17 11:39 UTC by Ludwig Nussel
Modified: 2024-05-17 09:10 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Nussel 2023-08-17 11:39:46 UTC
The update-bootloader script in perl-Bootloader is one of very few left to use perl in a minimal system. Looks like it could be rewritten in shell easily to avoid the perl dependency.

The grub bits in the same package are a bit more complex but could be split out so at least systemd-boot systemd don't have perl anymore.
Comment 1 Steffen Winterfeldt 2023-10-09 11:42:36 UTC
I've just noticed that sed is gpl 3; that limits the options drastically. :-(
Also gawk is gpl3, but there's mawk. Not sure though, if that's available.

Hm, leaves us with C?
Comment 2 Ludwig Nussel 2023-10-09 11:48:13 UTC
grub2 itself is GPLv3 so I'd assume it's just fine to use tools that are GPLv3 as well. Maybe they need to be moved to a separate subpackage so the gplv3 tooling is only pulled in when grub is as well.
Comment 3 Steffen Winterfeldt 2023-10-20 16:03:56 UTC
https://github.com/openSUSE/perl-bootloader/pull/159
Comment 4 Steffen Winterfeldt 2024-02-19 19:58:33 UTC
Finally done. No traces of perl left.

Usable shells: ash, bash, ksh.

https://github.com/openSUSE/perl-bootloader/pull/163
Comment 5 Dominique Leuenberger 2024-02-19 20:47:25 UTC
(In reply to Steffen Winterfeldt from comment #4)
> Finally done. No traces of perl left.

Except in the package name. This looks now quite confusing.
Comment 6 Steffen Winterfeldt 2024-02-20 08:22:49 UTC
That's the next step - suggestions welcome. :-)
Comment 7 Ludwig Nussel 2024-02-20 08:34:33 UTC
"update-bootloader" :-)
Comment 8 Steffen Winterfeldt 2024-02-20 08:56:36 UTC
Maybe; but there's also an update-bootloader program in perl-Bootloader.
Comment 9 Ludwig Nussel 2024-02-20 09:14:57 UTC
exactly. Pretty descriptive name for what it does