Commit a0d2226f authored by Mike Hibler's avatar Mike Hibler

Handle the case of /etc/localtime being a symlink into /usr/share.

I'm talking to you Ubuntu16!
parent 14e3f214
#!/bin/sh
#
# Copyright (c) 2000-2016 University of Utah and the Flux Group.
# Copyright (c) 2000-2017 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -134,6 +134,11 @@ localize_image() {
# Check the time zone.
if [ -e /etc/localtime ]; then
# XXX might be a symlink to /usr/share which we cannot resolve
if [ -L $MNT/etc/localtime ]; then
rm $MNT/etc/localtime
cp /dev/null $MNT/etc/localtime
fi
cmp -s /etc/localtime $MNT/etc/localtime
if [ $? -ne 0 ]; then
echo " updating /etc/localtime"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment