Skip to contentSkip to conversation

Rename update-grub to grub-update?

DISCUSSION Pavel Roskin 4 participants 9 messages Feb 12, 2008 – Mar 20, 2008

lore
Share & tools
lore
#0 lore raw

Hello!

All grub binaries installed in $prefix/bin and $prefix/sbin start with "grub-" except mbchk and update-grub. mbchk is probably not meant to be grub specific, but update-grub is.

I think it would be logical to rename update-grub to grub-update. Objections?

Signature · 2 lines
Regards,
Pavel Roskin
#1 lore raw
Quoted 8 lines · Pavel Roskin

Hello!

All grub binaries installed in $prefix/bin and $prefix/sbin start with "grub-" except mbchk and update-grub. mbchk is probably not meant to be grub specific, but update-grub is.

I think it would be logical to rename update-grub to grub-update. Objections?

If you rename it, I want to select a more appropriate name, such as grub-update-config. The current name doesn't tell me what it will update.

Okuji

#2 lore raw

I had't read this thread when I posted my email "comments about /etc/default/grub"

Quoted 10 lines · Yoshinori K. Okuji
Quoted 6 lines · Pavel Roskin

All grub binaries installed in $prefix/bin and $prefix/sbin start with "grub-" except mbchk and update-grub. mbchk is probably not meant to be grub specific, but update-grub is.

I think it would be logical to rename update-grub to grub-update. Objections?

If you rename it, I want to select a more appropriate name, such as grub-update-config. The current name doesn't tell me what it will update.

What about renaming /etc/default/grub as /etc/grub-update-config.cfg ?

Franklin

#3 lore raw
In reply to Yoshinori K. Okuji
Quoted 7 lines · Yoshinori K. Okuji
Quoted 6 lines · Pavel Roskin

Hello!

All grub binaries installed in $prefix/bin and $prefix/sbin start with "grub-" except mbchk and update-grub. mbchk is probably not meant to be grub specific, but update-grub is.

Quoted 5 lines
Quoted 2 lines

I think it would be logical to rename update-grub to grub-update. Objections?

If you rename it, I want to select a more appropriate name, such as grub-update-config. The current name doesn't tell me what it will update.

Fine with me.

Signature · 2 lines
Regards,
Pavel Roskin
#4 lore raw
In reply to Pavel Roskin
Quoted 8 lines · Pavel Roskin

Hello!

All grub binaries installed in $prefix/bin and $prefix/sbin start with "grub-" except mbchk and update-grub. mbchk is probably not meant to be grub specific, but update-grub is.

I think it would be logical to rename update-grub to grub-update. Objections?

I picked this name for historical reasons, since it was aimed at replacing a Debian-specific script that performed the same functionality.

Calling it "update-grub" has a big advantage: for many GRUB Legacy users, when seeing a script called like this they will instantly know what it does.

That aside, I agree the name is quite unfortunate. What would you think of postponing this untill GRUB Legacy has been replaced? It's already a big leap to migrate from GRUB Legacy to GRUB 2; I suggest we don't make it bigger yet.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#5 lore raw
Quoted 7 lines · Robert Millan
Quoted 6 lines · Pavel Roskin

Hello!

All grub binaries installed in $prefix/bin and $prefix/sbin start with "grub-" except mbchk and update-grub. mbchk is probably not meant to be grub specific, but update-grub is.

Quoted 5 lines
Quoted 2 lines

I think it would be logical to rename update-grub to grub-update. Objections?

I picked this name for historical reasons, since it was aimed at replacing a Debian-specific script that performed the same functionality.

Fedora has grubby, which manages not only GRUB configuration, but also configuration files for lilo, elilo and yaboot. I never needed to run it manually. I expect it to support GRUB 2 when it's adopted by Fedora.

I would actually prefer to avoid outright replacement of an existing distribution-specific tool. Debian could continue installing update-grub, perhaps as a wrapper for grub-update or whatever we call our utility.

Quoted 3 lines

Calling it "update-grub" has a big advantage: for many GRUB Legacy users, when seeing a script called like this they will instantly know what it does.

I think grub-update is just as descriptive, and grub-update-config even more so. I don't think Debian users actually need to run update-grub manually. Any good distribution should provide /sbin/installkernel, which would be run when a new kernel is being installed.

Quoted 3 lines

That aside, I agree the name is quite unfortunate. What would you think of postponing this untill GRUB Legacy has been replaced? It's already a big leap to migrate from GRUB Legacy to GRUB 2; I suggest we don't make it bigger yet.

I don't insist on the change. But please consider my arguments.

Signature · 2 lines
Regards,
Pavel Roskin
#6 lore raw
Quoted 5 lines · Pavel Roskin

I would actually prefer to avoid outright replacement of an existing distribution-specific tool. Debian could continue installing update-grub, perhaps as a wrapper for grub-update or whatever we call our utility.

update-grub never was really distribution-specific. Someone wrote it for Debian ages ago, when they could have tried to cooperate with GRUB maintainers like I did, but that's all.

Quoted 8 lines
Quoted 3 lines

Calling it "update-grub" has a big advantage: for many GRUB Legacy users, when seeing a script called like this they will instantly know what it does.

I think grub-update is just as descriptive, and grub-update-config even more so. I don't think Debian users actually need to run update-grub manually. Any good distribution should provide /sbin/installkernel, which would be run when a new kernel is being installed.

Debian has:

/etc/kernel-img.conf:postinst_hook = update-grub
/etc/kernel-img.conf:postrm_hook = update-grub

which as you can guess it's a PITA to update in maintainer scripts (I already went through this once).

In addition, a number of packages that provide GRUB add-ons (memtest86, grub-invaders, desktop-base) have started providing update-grub hooks and calling that script in their scripts. This behaviour is GRUB 2 specific (the older update-grub was a monolithic script with all the cruft), and AFAICT to the date only in Debian, but there's no reason it can't be merged with their upstreams.

All in all, even if you want to change it I think there should be a smooth transition that doesn't break current usage.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#7 lore raw
In reply to Robert Millan
Quoted 13 lines · Robert Millan
Quoted 8 lines · Pavel Roskin

Hello!

All grub binaries installed in $prefix/bin and $prefix/sbin start with "grub-" except mbchk and update-grub. mbchk is probably not meant to be grub specific, but update-grub is.

I think it would be logical to rename update-grub to grub-update. Objections?

I picked this name for historical reasons, since it was aimed at replacing a Debian-specific script that performed the same functionality.

Quoted 7 lines

Calling it "update-grub" has a big advantage: for many GRUB Legacy users, when seeing a script called like this they will instantly know what it does.

That aside, I agree the name is quite unfortunate. What would you think of postponing this untill GRUB Legacy has been replaced? It's already a big leap to migrate from GRUB Legacy to GRUB 2; I suggest we don't make it bigger yet.

On a second thought, this wouldn't be much of an issue if Debian can have its own "update-grub" which wraps around "grub-mkconfig" or whatever you want to call it.

Additionally, this would allow us to change the CLI to something that doesn't hardcode /boot/grub/grub.cfg and provides greater flexibility, e.g.:

grub-mkconfig -o /boot/grub/grub.cfg

which is also useful for Debian.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#8 lore raw
Quoted 10 lines · Robert Millan

On a second thought, this wouldn't be much of an issue if Debian can have its own "update-grub" which wraps around "grub-mkconfig" or whatever you want to call it.

Additionally, this would allow us to change the CLI to something that doesn't hardcode /boot/grub/grub.cfg and provides greater flexibility, e.g.:

grub-mkconfig -o /boot/grub/grub.cfg

which is also useful for Debian.

Fine with me.

Signature · 2 lines
Regards,
Pavel Roskin