summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index 3cfa0d4..43969ee 100644
--- a/functions
+++ b/functions
@@ -1170,7 +1170,8 @@ setup_devices_simple () {
mknod -m 666 $TARGET/dev/random c 1 8
mknod -m 666 $TARGET/dev/urandom c 1 9
mknod -m 666 $TARGET/dev/tty c 5 0
- mkdir $TARGET/dev/pts/ $TARGET/dev/shm/
+ # To avoid pre-exist directory causes error, specify "-p" option
+ mkdir -p $TARGET/dev/pts/ $TARGET/dev/shm/
# Inside a container, we might not be allowed to create /dev/ptmx.
# If not, do the next best thing.
if ! mknod -m 666 $TARGET/dev/ptmx c 5 2; then