Bugzilla – Bug 1214361
perl-Bootloader: rewrite update-bootloader in shell
Last modified: 2024-05-17 09:10:12 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.
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?
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.
https://github.com/openSUSE/perl-bootloader/pull/159
Finally done. No traces of perl left. Usable shells: ash, bash, ksh. https://github.com/openSUSE/perl-bootloader/pull/163
(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.
That's the next step - suggestions welcome. :-)
"update-bootloader" :-)
Maybe; but there's also an update-bootloader program in perl-Bootloader.
exactly. Pretty descriptive name for what it does