New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird timezone in appVM #1315

Closed
yaqu opened this Issue Oct 10, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@yaqu

yaqu commented Oct 10, 2015

If /etc/localtime in dom0 is a hardlink to zoneinfo file (instead of
symlink) and more than one zoneinfo file is hardlinked to this inode,
appVMs will get invalid timezone, e.g. "Europe/Warsaw\x0aPoland".

Bug is in /usr/lib64/python2.7/site-packages/qubes/modules/000QubesVm.py
file in get_timezone(). To fix it, number of results from find should be
limited to one, like this:

p = subprocess.Popen(['find', '/usr/share/zoneinfo',
'-inum', str(tz_info.st_ino),
'-print', '-quit'],
stdout=subprocess.PIPE)

Temporary fix: create in dom0 a valid symlink /etc/localtime and do not
change timezone in KDE System Settings (KDE creates hardlink).

@marmarek marmarek added this to the Release 3.0 updates milestone Oct 10, 2015

marmarek added a commit to marmarek/old-qubes-core-admin that referenced this issue Oct 11, 2015

Fix handling /etc/localtime hardlink
If /etc/localtime in dom0 is a hardlink to zoneinfo file (instead of
symlink) and more than one zoneinfo file is hardlinked to this inode,
appVMs will get invalid timezone, e.g. "Europe/Warsaw\x0aPoland".

Reported by @yaqu, fix provided by @yaqu
Fixes QubesOS/qubes-issues#1315

(cherry picked from commit 350e279)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment