~smoser/cloud-utils/trunk.lp1630274

  • Committer: Scott Moser
  • Date: 2016-10-04 15:11:26 UTC
  • Revision ID: smoser@ubuntu.com-20161004151126-zydhk74jv7me9ym6
mount-image-callback: try mounting overlay rather than checking first

The logic to determine if mount would work was flawed in it assumed
that both or neither of the following would succeed:
  modprobe --quiet --use-blacklist fstype
  mount -t fstype would succeed

That logic failed when modprobe could not load the module due to
being in a chroot or some other reason.  The change here is to just
do try the mount.  In order to avoid confusing output about trying
to mount overlayfs we first try mounting overlay.  If that fails
and 'overlay' seems present in /proc/filesystems, then do not bother
trying to mount overlayfs.
Filename Latest Rev Last Changed Committer Comment Size
..
bin 112 12 years ago Scott Moser split bins into bin/ and man pages into man/ Diff
debian 1 14 years ago Bazaar Package Importer Initial release. Diff
man 112 12 years ago Scott Moser split bins into bin/ and man pages into man/ Diff
test 217.1.3 11 years ago Scott Moser add test script for growpart Diff
tools 114 12 years ago Scott Moser add tool for making dist tarball Diff
ChangeLog 303 7 years ago Scott Moser mount-image-callback: support 'overlay' filesystem 4.9 KB Diff Download File
LICENSE 292 7 years ago Scott Moser Add license file (GPL-3) 34.3 KB Diff Download File
Makefile 243 10 years ago Scott Moser remove some obsolete things (cloud-run-instances, 575 bytes Diff Download File