8000 build: Fix loading libnss by krnowak · Pull Request #3041 · rkt/rkt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

build: Fix loading libnss #3041

Merged
merged 4 commits into from
Aug 9, 2016
Merged

Conversation

krnowak
Copy link
Collaborator
@krnowak krnowak commented Aug 9, 2016

I could not find where systemd tries to load libnss_files, so probably
it does not do it directly. But apparently the loader does not like
the hardcoded /usr/lib path in the ACI rootfs, so instead put the
libnss_files libraries in the same directory as found on host.

@krnowak krnowak force-pushed the krnowak/src-flavor-libnss branch from 35d5ced to ec1d90a Compare August 9, 2016 14:37
krnowak and others added 4 commits August 9, 2016 16:51
This avoid hardcoding paths like /usr/lib64 which may not be valid on
some distros.
We were using the variable name instead of the actual variable.
I could not find where systemd tries to load libnss_files, so probably
it does not do it directly. But apparently the loader does not like
the hardcoded /usr/lib path in the ACI rootfs, so instead put the
libnss_files libraries in the same directory as found on host.
@krnowak krnowak force-pushed the krnowak/src-flavor-libnss branch from ec1d90a to 39ffc2a Compare August 9, 2016 14:52
@krnowak
Copy link
Collaborator Author
krnowak commented Aug 9, 2016

I tested it on my computer (fedora 24) and all the tests that failed here (https://jenkins-rkt-public.prod.coreos.systems/job/rkt-master-periodic/os_type=fedora-24,stage1_flavor=src_master/105/consoleFull) passed. Didn't check other tests.

@krnowak
Copy link
Collaborator Author
krnowak commented Aug 9, 2016

Basically, I called make functional-check GO_TEST_FUNC_ARGS="-run 'TestCapsNonRoot|TestAppUserGroup|TestNoNewPrivileges|TestPodManifest|TestAppIsolatorSeccomp|TestSupplementaryGIDs'".

@iaguis
Copy link
Member
iaguis commented Aug 9, 2016

I tested it on debian and fedora24 with the flavor src-v231 and it worked too.

@iaguis
Copy link
Member
iaguis commented Aug 9, 2016

lgtm

@iaguis
Copy link
Member
iaguis commented Aug 9, 2016

Travis is broken ATM: https://blog.travis-ci.com/2016-08-09-outage-gce-images

Merging anyway since the other tests passed.

@iaguis iaguis merged commit d0e3639 into rkt:master Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0