Re: Relying on $PATH in RPM scriplets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 26, 2013 at 06:06:00PM +0200, Lukas Zapletal wrote:
> Hey,
> 
> since we provide cloud images starting with Fedora 19, I noticed that
> cloud-init, which is used in these, does not execute user shell scripts
> with $PATH set properly which is causing issues for packages that does
> not provide full paths in scriplets.
> 
> I know we have some examples which relies on $PATH set to at least
> /usr/bin and /sbin, for example:
> 
> http://fedoraproject.org/wiki/Packaging:UsersAndGroups
> 
> I am searching for page that says one can rely on the $PATH. Cannot find
> it.

I searched the source for cloud-init in Rawhide, and it doesn't
mention PATH at all, except in one example.  So I conclude that
cloud-init doesn't set PATH at all and must get it from systemd.
(I can't find out what environment systemd sets up by default either ...
Ask Lennart?)

IMHO there's probably a case for filing a bug with upstream cloud-init
and getting them to drop something like:

  Environment=PATH=[some predictable path]

into cloud-init-0.7.2/systemd/cloud-*.service.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux