Bug#380338: forces absolute paths in /etc/kernel-img.conf *_hook variables

2006-07-29 Thread Stephen Gran
This one time, at band camp, Robert Millan said: > On Sat, Jul 29, 2006 at 01:15:27PM +0100, Stephen Gran wrote: > > And then use constructs like > > > > if (which($postinst_hook)) { > > ... > > } > > > > I can't remember if you use taint mode and warnings and so forth, but if > > you do, subst

Bug#380338: forces absolute paths in /etc/kernel-img.conf *_hook variables

2006-07-29 Thread Robert Millan
On Sat, Jul 29, 2006 at 02:52:28PM +0100, Stephen Gran wrote: > This one time, at band camp, Robert Millan said: > > On Sat, Jul 29, 2006 at 01:15:27PM +0100, Stephen Gran wrote: > > > And then use constructs like > > > > > > if (which($postinst_hook)) { > > > ... > > > } > > > > > > I can't re

Bug#380338: forces absolute paths in /etc/kernel-img.conf *_hook variables

2006-07-29 Thread Robert Millan
On Sat, Jul 29, 2006 at 01:15:27PM +0100, Stephen Gran wrote: > > > > Please could you apply the attached patch to disable the checks? (or > > rewrite > > the checks in some way that doesn't break relative paths) > > Or just use something like: > > sub which { > my $progname = $_ ; > f

Bug#380338: forces absolute paths in /etc/kernel-img.conf *_hook variables

2006-07-29 Thread Robert Millan
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

Bug#380338: forces absolute paths in /etc/kernel-img.conf *_hook variables

2006-07-29 Thread Stephen Gran
This one time, at band camp, Robert Millan said: > Hi Manoj, > > 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

Bug#380338: forces absolute paths in /etc/kernel-img.conf *_hook variables

2006-07-29 Thread Robert Millan
Package: kernel-package Severity: grave Tags: patch Hi Manoj, 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 ou