Skip to content

cmd/initContainer: fix /etc/localtime handling for Ubuntu containers.#634

Merged
debarshiray merged 1 commit into
containers:masterfrom
likan999:patch-8
Jan 12, 2021
Merged

cmd/initContainer: fix /etc/localtime handling for Ubuntu containers.#634
debarshiray merged 1 commit into
containers:masterfrom
likan999:patch-8

Conversation

@likan999

Copy link
Copy Markdown
Contributor

On Ubuntu host and images, the /run/host/etc/localtime points to /usr/share/zoneinfo/SomeTimeZone; which breaks current code that assumes it point to /run/host/usr/share/zoneinfo/SomeTimeZone.

likan999 added a commit to likan999/ppa-toolbox that referenced this pull request Nov 28, 2020
On Ubuntu host and images, the `/run/host/etc/localtime` points to
`/usr/share/zoneinfo/SomeTimeZone`; which breaks current code that
assumes it point to `/run/host/usr/share/zoneinfo/SomeTimeZone`.

containers#634
@softwarefactory-project-zuul

Copy link
Copy Markdown

Build failed.

On Arch Linux and Ubuntu hosts, /etc/localtime is an absolute symbolic
link to /usr/share/zoneinfo/SomeTimeZone. So, inside the container,
/run/host/etc/localtime also has /usr/share/zoneinfo/SomeTimeZone as
its target.

containers#622
@softwarefactory-project-zuul

Copy link
Copy Markdown

Build succeeded.

@debarshiray debarshiray merged commit 69dd701 into containers:master Jan 12, 2021
@debarshiray

Copy link
Copy Markdown
Member

I updated the commit message to include #622

Thanks for working on this.

@likan999 likan999 deleted the patch-8 branch January 12, 2021 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants