Skip to content

Commit

Permalink
Fix alpine template
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gibmat committed Jan 27, 2024
1 parent 74a6743 commit 9c720dd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion templates/lxc-alpine.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9c720dd

Please sign in to comment.