Skip to content

Commit

Permalink
new code for setting timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jan 17, 2012
1 parent d49555f commit 4a778bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/fai-make-nfsroot
Expand Up @@ -393,9 +393,8 @@ EOF
copy_fai_files

# set timezone in nfsroot
timezone=$(readlink /etc/localtime | sed 's%^/usr/share/zoneinfo/%%')
echo $timezone > etc/timezone
ln -sf /usr/share/zoneinfo/$timezone etc/localtime
cp -H /etc/timezone etc/timezone
cp -H /etc/localtime etc/localtime
ln -sf /proc/mounts etc/mtab

[ -f etc/init/tty1.conf ] || ln -s /usr/sbin/fai etc/init.d/rcS
Expand Down

0 comments on commit 4a778bb

Please sign in to comment.