Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
4e0eb765
Commit
4e0eb765
authored
Dec 28, 2010
by
Daniel Baumann
Committed by
Daniel Lezcano
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creating missing tty device nodes for squeeze in debian template.
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
49a630b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lxc-debian.in
templates/lxc-debian.in
+8
-0
No files found.
templates/lxc-debian.in
View file @
4e0eb765
...
...
@@ -28,6 +28,14 @@ configure_debian()
rootfs
=
$1
hostname
=
$2
# squeeze only has /dev/tty and /dev/tty0 by default,
# therefore creating missing device nodes for tty1-4.
for
tty
in
$(
seq
1 4
)
;
do
if
[
!
-e
$rootfs
/dev/tty
$tty
]
;
then
mknod
$rootfs
/dev/tty
$tty
c 4
$tty
fi
done
# configure the inittab
cat
<<
EOF
>
$rootfs
/etc/inittab
id:3:initdefault:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment