Skip to content
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

fix: POC for a sane dracut chroot environment #1149

Closed
wants to merge 1 commit into from

Conversation

haraldh
Copy link
Contributor

@haraldh haraldh commented May 21, 2021

bash and various other utilities only work with a sane chroot
environment. At least bash needs /dev/fd to function properly.

Take this as a POC patch to make things work.

See https://bugzilla.redhat.com/show_bug.cgi?id=1962975#c2

With this patch:

# lsinitrd ./isolinux/initrd.img|fgrep ca-bundle
-r--r--r--   1 root     root       216090 May 18 10:36 etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
lrwxrwxrwx   1 root     root           46 May 18 10:36 etc/pki/tls/certs/ca-bundle.crt -> ../../ca-trust/extracted/pem/tls-ca-bundle.pem

`bash` and various other utilities only work with a sane chroot
environment. At least `bash` needs `/dev/fd` to function properly.

Take this as a POC patch to make things work.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 864338747

  • 0 of 4 (0.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 41.829%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/pylorax/treebuilder.py 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
src/pylorax/treebuilder.py 2 37.26%
Totals Coverage Status
Change from base Build 814822323: -0.03%
Covered Lines: 1290
Relevant Lines: 2894

💛 - Coveralls

@bcl
Copy link
Contributor

bcl commented May 24, 2021

Thanks for tracking that down, I've expanded on this a bit in #1151 which should make it easier to add future requirements.

@bcl bcl closed this May 24, 2021
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.

None yet

3 participants