[Bug 1632766] Re: time in lxc ubuntu template

2016-10-12 Thread Eric Desrochers
After a talk with stgraber, this is a due to the fact that the Ubuntu
LXC I build are using a pre-generated image which uses UTC by default.

If you want to change the time on Xenial, in my case date command or
other technic didn't have positive impact.

The only thing that work so far is to unlink /etc/localtime and link it
to the desired zone.

example :

#ls -altr /etc/localtime 
lrwxrwxrwx 1 root root 27 Oct 12 15:59 /etc/localtime -> 
/usr/share/zoneinfo/Etc/UTC

# unlink /etc/localtime

# ls -altr /etc/localtime 
ls: cannot access '/etc/localtime': No such file or directory

# ln -s /usr/share/zoneinfo/America/Toronto /etc/localtime

# ls -altr /etc/localtime 
lrwxrwxrwx 1 root root 35 Oct 12 12:05 /etc/localtime -> 
/usr/share/zoneinfo/America/Toronto

Eric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632766

Title:
  time in lxc ubuntu template

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1632766/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1632766] Re: time in lxc ubuntu template

2016-10-12 Thread Stéphane Graber
So it's expected that the download template images will not replicate
any host settings (locales, timezone, ...) as those are completely self-
contained images.

As discussed on IRC, it looks like Xenial needs you to also change the
/etc/localtime symlink, which is why your manual change worked for
trusty but not xenial.

** Changed in: lxc (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632766

Title:
  time in lxc ubuntu template

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1632766/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1632766] Re: time in lxc ubuntu template

2016-10-12 Thread Eric Desrochers
LXC Container has been created as follow :

$ lxc-create -t download -n trusty -- --dist ubuntu --release trusty --arch 
amd64
$ lxc-create -t download -n xenial -- --dist ubuntu --release xenial --arch 
amd64

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632766

Title:
  time in lxc ubuntu template

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1632766/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs