On 24 September 2010 11:49, Guido Trotter <[email protected]> wrote: >> +if [ -r confdata/timezone ] >> +then cp confdata/timezone $TARGET/etc/ >> +else cp /etc/timezone $TARGET/etc/ >> +fi >> > > Will the file actually exist? "timezone" is not actually guaranteed to > be executed with the hooks dir as its current directory
Good point. Whilst it did on my setup, run-parts(8) isn't clear on that. AFAICS the CUSTOMIZE_DIR variable isn't available either to those scripts, which would leave me to hardcode that path. I'm not sure if there's a better way. Thanks, Serge
