[CRIU] [PATCH 2/3] scripts: systemd-autofs-restart.sh added

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Wed Apr 6 02:19:53 PDT 2016



06.04.2016 11:17, Cyrill Gorcunov пишет:
> On Wed, Apr 06, 2016 at 12:01:54PM +0300, Stanislav Kinsburskiy wrote:
>> Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
>> +
>> +if [ ! -n "$NS_PID" ]; then
>> +	echo "NS_PID environment variable is not set"
>> +	exit 1
>> +fi
>> +
>> +NS_ENTER=/usr/bin/nsenter
> Why hardcoded path here? Plain nsenter won't be enough (without /usr/bin prefix)?

Hardcoded paths are better, from my POW. Otherwise it can find 
/usr/local/bin/nsenter or else and use it instead.
I would say it's a common practice to specify absolute paths in scripts.


More information about the CRIU mailing list