Bug#361929: grub and /usr

Robert Millan rmh at aybabtu.com
Sat Jul 29 10:48:01 UTC 2006


Hi!

I have to apologise, because all this fuss is my fault.  I mistakenly
interpreted FHS and understood that GRUB should be in / rather than /usr
because it was essential for system boot.  However, this is not the case since
all files used during boot live in /boot/grub.

Rewriting grub-install, etc doesn't make sense.  In case of grub-install, we'd
have to diverge from upstream for no good reason, and introduce new bugs.  To
me, it's much worse than violating FHS, even if violating FHS is an RC bug.

Some alternatives that come to mind:

 - Can we edit /etc/kernel-img.conf during postinst?  A simple sed rule could
 turn all "/sbin/update-grub" into "/usr/sbin/update-grub".  I suppose policy
 mandates that we need user permission to do this, but we could add a debconf
 template for that.

 - Can we replace /sbin/update-grub with a dummy stub that just echoes:
 "WARNING: $0 doing nothing.  Use /usr/sbin/update-grub instead!"

 (fortunately, default $PATH gives preference to /usr, so this won't bother
 the user during shell invokations).

As for grub-installer, can't it just ensure PATH gives preference to /usr,
and then invoke the commands without an absolute path?

-- 
Robert Millan

My spam trap is honeypot at aybabtu.com.  Note: this address is only intended for
spam harvesters.  Writing to it will get you added to my black list.




More information about the Pkg-grub-devel mailing list