Fix #61: Check whether device nodes exist, after they have been created.

As reported in #53, it appears that older versions of eCryptfs don't
really create the device nodes, although `mknod` does not fail on
the commandline. That's fixed now with this extra check.
This commit is contained in:
Oliver Smith 2017-06-06 16:36:57 +02:00
parent a537dbb3ac
commit 36527e548e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -105,6 +105,10 @@ def init(args, suffix="native"):
str(dev[2]), # major
str(dev[3]), # minor
])
if not os.path.exists(path):
raise RuntimeError("Failed to create device node in chroot for " +
dev[4] + "! (This might be caused by setting the work folder" +
" to an eCryptfs folder.)")
# Non-native chroot: install qemu-user-binary, run apk fix
if suffix != "native":