From ee2ed0921e0b5aa598c91096b6fe7f75d3914e64 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 27 Oct 2014 11:01:14 +0100 Subject: [PATCH] Allow mounting a Fedora image. Fixes #127 --- src/modules/unpackfs/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/unpackfs/main.py b/src/modules/unpackfs/main.py index 343ca8235..c1e1a7ec2 100644 --- a/src/modules/unpackfs/main.py +++ b/src/modules/unpackfs/main.py @@ -221,7 +221,7 @@ def run(): destination = os.path.abspath(root_mount_point + entry["destination"]) - if not os.path.isfile(source): + if not os.path.exists(source) or os.path.isdir(source): return ("Bad source", "source=\"{}\"".format(source)) if not os.path.isdir(destination): return ("Bad destination",