diff options
author | Hideki Yamane <henrich@debian.org> | 2018-03-07 07:32:39 (GMT) |
---|---|---|
committer | Hideki Yamane <henrich@debian.org> | 2018-03-17 15:32:02 (GMT) |
commit | 528dc1d3e01433c769d15f5dcea4af99b3fd4629 (patch) | |
tree | e867645ef12558c7e24c5089ee69f910189f67b9 /functions | |
parent | 5d9357b8ab033bee9e56dda3bcc10182f2289212 (diff) | |
download | debootstrap-528dc1d3e01433c769d15f5dcea4af99b3fd4629.zip debootstrap-528dc1d3e01433c769d15f5dcea4af99b3fd4629.tar.gz debootstrap-528dc1d3e01433c769d15f5dcea4af99b3fd4629.tar.bz2 |
Avoid pre-exist directory causes failure (Bug#864734)
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |