1
0
mirror of https://github.com/lxc/lxc-templates.git synced 2025-04-26 09:37:20 +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:
Mathias Gibbens 2024-01-27 16:11:20 +00:00
parent 74a6743241
commit 9c720dd77b
No known key found for this signature in database
GPG Key ID: 29EEE2D6ECF442F9

View File

@ -294,7 +294,6 @@ make_dev_nodes() {
mknod -m 666 dev/tty c 5 0
chown 0:5 dev/tty # root:tty
mknod -m 620 dev/console c 5 1
mknod -m 666 dev/ptmx c 5 2
chown 0:5 dev/ptmx # root:tty
}