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

please stop hardcoding paths to programs



In the d-i environment, the following directories are in PATH:

/usr/bin:/bin:/usr/sbin:/sbin

Please think twice, or three times before hardcoding paths to any
programs in d-i in the above directories. Things have a way of moving
around, people are fallable and hardcode the wrong paths, and this
breaks things.

The only acceptable time to hardcode a path is a test -x to see if a
program exists (busybox does not have a which, so that can't be used).
Please think very carefully before hardcoding a path even there and try
to find an alternative.

I'm asking this especially because a single mis-hardcoded path in
hw-detect has now managed to delay the beta4 release for a total of 3
days.

With luck, beta4 will release tomorrow.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: