As for #361929, I overlooked that kernel-package also happens to be the most
appropiate place for fixing the user scripts.  Would you please also add
something like:

  sed -i /etc/kernel-img.conf -e "s,\(.*\)/sbin/update-grub$,\1update-grub,g"

for linux-image-* postinsts ?

(or whatever the perl equivalent is)

On Sat, Jul 29, 2006 at 01:28:35PM +0200, Robert Millan wrote:
> 
> Using absolute paths in /etc/kernel-img.conf *_hook variables can have horrid
> consequences when things like this happen:
> 
>  - the command (in /usr) turns out to be in FHS violation and must be moved 
> to /.
>  - the command (in /) turns out to depend on stuff from /usr, and must be 
> moved to /usr.
> 
> You can see #361929 for an example.  Hardcoded paths for /sbin/update-grub are
> now in everyone's system and it'll be a mess to fix this.
> 
> Unfortunately, the "(-x foo)" sanity checks that are performed in 
> kernel-package
> scripts make the assumption that the path is absolute, as the check fails
> otherwise.  I'm not sure if that's intentional, but it's a very bad thing to 
> do.
> 
> Please could you apply the attached patch to disable the checks?  (or rewrite
> the checks in some way that doesn't break relative paths)

-- 
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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to