Ben Hutchings writes ("Re: update-initramfs should not set PATH"): > Control: tag -1 wontfix > > I'm not at all convinced that update-initramfs should be sensitive to > the path of the process invoking it. update-initramfs is not only used > interactively, but also automatically by package installation.
Package installation should also occur with an appropriate PATH. If PATH contains exciting things then that is presumably deliberate. See policy 6.1 (last para): Programs called from maintainer scripts should not normally have a path prepended to them. Before installation is started, the package management system checks to see if the programs ldconfig, start-stop-daemon, and update-rc.d can be found via the PATH environment variable. Those programs, and any other program that one would expect to be in the PATH, should thus be invoked without an absolute pathname. Maintainer scripts should also not reset the PATH, though they might choose to modify it by prepending or appending package-specific directories. These considerations really apply to all shell scripts. I think it would be better to follow this recommendation here, unless you have a compelling reason to deviate from our usual practice. Thanks, Ian.