forked from Mirror/pmbootstrap
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:
parent
a537dbb3ac
commit
36527e548e
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,10 @@ def init(args, suffix="native"):
|
||||||
str(dev[2]), # major
|
str(dev[2]), # major
|
||||||
str(dev[3]), # minor
|
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
|
# Non-native chroot: install qemu-user-binary, run apk fix
|
||||||
if suffix != "native":
|
if suffix != "native":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue