mk-sbuild: Support kmod, when checking for overlayfs availability.

This commit is contained in:
Stefano Rivera 2012-04-25 17:40:33 +02:00
parent 4019f98594
commit 71aab84949
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ubuntu-dev-tools (0.142) UNRELEASED; urgency=low
* mk-sbuild: Support kmod, when checking for overlayfs availability.
-- Stefano Rivera <stefanor@debian.org> Wed, 25 Apr 2012 17:38:58 +0200
ubuntu-dev-tools (0.141) unstable; urgency=low ubuntu-dev-tools (0.141) unstable; urgency=low
* syncpackage: Log into Launchpad anonymously with --no-lp * syncpackage: Log into Launchpad anonymously with --no-lp

View File

@ -541,7 +541,7 @@ esac
case "$SCHROOT_TYPE" in case "$SCHROOT_TYPE" in
directory|file) directory|file)
if grep -q '\soverlayfs$' /proc/filesystems \ if grep -q '\soverlayfs$' /proc/filesystems \
|| (/sbin/modprobe -l | grep -Fq '/overlayfs.ko'); then || /sbin/modprobe -q --dry-run overlayfs; then
OVERLAY_FS=overlayfs OVERLAY_FS=overlayfs
else else
OVERLAY_FS=aufs OVERLAY_FS=aufs