Skip to contentSkip to conversation

update-grub shell library

DISCUSSION Robert Millan 2 participants 2 messages May 19, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I'd like to add a shell library that can be used as a helper for update-grub modules.

Currently, update-grub exports variables like GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB, which are a bit of a kludge. I'd like to rewrite these into a shell function that converts system paths to grub paths, but then it can't just be exported into environment.

Can we add something like $(libdir)/grub/update-grub to put such kind of helper code in?

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#1 lore raw
Quoted 10 lines · Robert Millan

I'd like to add a shell library that can be used as a helper for update-grub modules.

Currently, update-grub exports variables like GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB, which are a bit of a kludge. I'd like to rewrite these into a shell function that converts system paths to grub paths, but then it can't just be exported into environment.

Can we add something like $(libdir)/grub/update-grub to put such kind of helper code in?

I see no problem with this.

Okuji