Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't fail if /proc/cpuinfo doesn't exist
In `setup_kernel_arches()`, we try to determine whether the architecture should be `ia32e`, based on some heuristics involving /proc/cpuinfo. This change allows the code to continue if `/proc/cpuinfo` doesn't exist, e.g. because we're in a chroot and `/proc` isn't mounted. In chroot situations where this heuristic architecture detection is expected to work (which I assume to be rare), a faux `/proc/cpuinfo` file should be created before calling `dkms`, e.g. by copying it from the host's real `/proc`. Since `dkms` would have just failed in such chroot environments before, this change still results in an improvement; the code can be refined later if necessary.
- Loading branch information