Skip to content

pmb: build: envkernel: Fix bind mount detection

Administrator requested to merge envkernel-fix into master

At the moment the "envkernel.sh hasn't run, assuming the kernel was cross compiled on host and using current dir as source" code path triggers even when using envkernel.sh, which works somewhat but requires sourcing envkernel.sh again after each invocation of "pmbootstrap build --envkernel ...".

The reason is that os.path.ismount() does not work for bind mounts (see https://bugs.python.org/issue29707). There is a workaround for that already in pmbootstrap but it is not used here for some reason.

Cc: @calebccff @ollieparanoid

Merge request reports

Loading