/srv/irclogs.ubuntu.com/2017/07/15/#cloud-init.txt

PuttiCurrently for example in DataSourceAltCloud.py some programs are called with their absolute path, e.g. /sbin/modprobe and /sbin/udevadm. Different operating systems have the udevadm command in different locations so could we use just the command name instead of its full path to sbin?10:00
Puttiok, so I thought about this bit. In some operating systems like Debian the /sbin/ won't be included in the path unless the user is super user. So it all depends on how the program is run.13:19
PuttiI think it would be wiser to let the packagers do the PATH configurations13:20
Puttiso in my opinion /sbin/modprobe could be just modprobe13:20
PuttiIn systemd the PATH variable is hardcoded to "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" (see man systemd.exec) and for sysvinit we have declared (in cloud-init/sysvinit) that /sbin should be in the PATH.13:55
Puttithe cloudinit.util module seems to have 'which' function also so that could be used, too. Which option is better?14:31

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!