mkdir /dev before doing mknod

Docker-DCO-1.1-Signed-off-by: Lewis Peckover <lew@lew.io> (github: lewispeckover)
This commit is contained in:
Lewis Peckover 2014-03-02 14:50:16 +00:00
parent f83482c918
commit 6d55a9d7ce

View file

@ -45,6 +45,7 @@ target=$(mktemp -d --tmpdir $(basename $0).XXXXXX)
set -x
mkdir -m 755 "$target"/dev
mknod -m 600 "$target"/dev/console c 5 1
mknod -m 600 "$target"/dev/initctl p
mknod -m 666 "$target"/dev/full c 1 7