Skip to content

Commit

Permalink
Devices created in rootfs instead of rootfs/dev
Browse files Browse the repository at this point in the history
Added /dev in the mknod commands.

Signed-off-by: Rachid Koucha <rachid.koucha@gmail.com>
  • Loading branch information
Rachid-Koucha committed May 7, 2019
1 parent 668084b commit 28eb86b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions templates/lxc-busybox.in
Expand Up @@ -89,15 +89,15 @@ ${rootfs}/usr/lib64"
echo "lxc.mount.entry = /dev/${dev} dev/${dev} none bind,optional,create=file 0 0" >> "${path}/config"
done
else
mknod -m 666 "${rootfs}/tty" c 5 0 || res=1
mknod -m 666 "${rootfs}/console" c 5 1 || res=1
mknod -m 666 "${rootfs}/tty0" c 4 0 || res=1
mknod -m 666 "${rootfs}/tty1" c 4 0 || res=1
mknod -m 666 "${rootfs}/tty5" c 4 0 || res=1
mknod -m 600 "${rootfs}/ram0" b 1 0 || res=1
mknod -m 666 "${rootfs}/null" c 1 3 || res=1
mknod -m 666 "${rootfs}/zero" c 1 5 || res=1
mknod -m 666 "${rootfs}/urandom" c 1 9 || res=1
mknod -m 666 "${rootfs}/dev/tty" c 5 0 || res=1
mknod -m 666 "${rootfs}/dev/console" c 5 1 || res=1
mknod -m 666 "${rootfs}/dev/tty0" c 4 0 || res=1
mknod -m 666 "${rootfs}/dev/tty1" c 4 0 || res=1
mknod -m 666 "${rootfs}/dev/tty5" c 4 0 || res=1
mknod -m 600 "${rootfs}/dev/ram0" b 1 0 || res=1
mknod -m 666 "${rootfs}/dev/null" c 1 3 || res=1
mknod -m 666 "${rootfs}/dev/zero" c 1 5 || res=1
mknod -m 666 "${rootfs}/dev/urandom" c 1 9 || res=1
fi

# root user defined
Expand Down

0 comments on commit 28eb86b

Please sign in to comment.