commit fa75d0f7bc374b88911c2bc5746bafb156987286 parent 914ac9594e47febf617d137c1fcac410edecda92 Author: Jaromil <jaromil@dyne.org> Date: Thu, 5 Sep 2013 12:45:40 +0200 check if loop mount is possible if not abort gracefully with an explanation (10x to Bucciarati and sdonk) Diffstat:
M | tomb | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/tomb b/tomb @@ -216,6 +216,15 @@ EOF exit $? fi # are we root already + # check if we have support for loop mounting + losetup -f > /dev/null + { test "$?" = "0" } || { + no "Loop mount of volumes is not supported on this machine, this error" + no "often occurs on VPS and kernels that don't provide the loop module." + no "It is impossible to use Tomb on this machine at this conditions." + die "Operation aborted." + } + # make sure necessary kernel modules are loaded modprobe dm_mod 2>/dev/null modprobe dm_crypt 2>/dev/null