Skip to content

Allow for mountless operation in non-privileged Docker containers

Ryan Finnie requested to merge rfinnie/live-build:nomount into master

Docker does not allow for mounts within a non-privileged container. debootstrap already has support for detecting and working around this (as of 1.0.107), and, surprisingly, I have yet to find an additional package whose pre-install/post-install hooks fail when /proc and /sys are not present (though many notice and complain).

This commit changes:

  • Warn upon /proc and /sys mount failures, but continue on
  • Change hooks config within the chroot from a bind mound to a tree copy

Merge request reports

Loading