iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improvements
[automated-distro-installer]
/
fai
/
config
/
scripts
/
FAIBASE
/
10-misc
diff --git
a/fai/config/scripts/FAIBASE/10-misc
b/fai/config/scripts/FAIBASE/10-misc
index 7a0599dd727e86f54c8a7a775f8616f774e532fd..926b5f0275c50c223b2b55e84fa41a2abdc9603d 100755
(executable)
--- a/
fai/config/scripts/FAIBASE/10-misc
+++ b/
fai/config/scripts/FAIBASE/10-misc
@@
-6,7
+6,7
@@
error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
echo $TIMEZONE > $target/etc/timezone
if [ -L $target/etc/localtime ]; then
echo $TIMEZONE > $target/etc/timezone
if [ -L $target/etc/localtime ]; then
- ln -sf /usr/share/zoneinfo/${TIMEZONE} $target/etc/localtime
+ fai-link /etc/localtime /usr/share/zoneinfo/${TIMEZONE}
else
cp -f /usr/share/zoneinfo/${TIMEZONE} $target/etc/localtime
fi
else
cp -f /usr/share/zoneinfo/${TIMEZONE} $target/etc/localtime
fi