mirror of
https://github.com/lxc/lxc-templates.git
synced 2026-09-19 06:21:29 +00:00
Fix alpine template
On a Debian sid system with lxc 5.0.3 and the latest snapshot of lxc-templates, attempting to create an alpine container fails with the error "mknod: dev/console: File exists". This had been reported a while back in Debian bug #998095 and partially addressed in #46. I performed some testing of the resulting alpine container, and things appear to be working correctly. Signed-off-by: Mathias Gibbens <gibmat@debian.org>
This commit is contained in:
@@ -294,7 +294,6 @@ make_dev_nodes() {
|
|||||||
|
|
||||||
mknod -m 666 dev/tty c 5 0
|
mknod -m 666 dev/tty c 5 0
|
||||||
chown 0:5 dev/tty # root:tty
|
chown 0:5 dev/tty # root:tty
|
||||||
mknod -m 620 dev/console c 5 1
|
|
||||||
mknod -m 666 dev/ptmx c 5 2
|
mknod -m 666 dev/ptmx c 5 2
|
||||||
chown 0:5 dev/ptmx # root:tty
|
chown 0:5 dev/ptmx # root:tty
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user