mkdir /dev before doing mknod
Docker-DCO-1.1-Signed-off-by: Lewis Peckover <lew@lew.io> (github: lewispeckover)
This commit is contained in:
parent
f83482c918
commit
6d55a9d7ce
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue