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
56c80e0d
Commit
56c80e0d
authored
Jun 09, 2016
by
Serge Hallyn
Committed by
GitHub
Jun 09, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1045 from thtanaka/console-login-ol72
Unable to login via console in OL7.2
parents
b5cacc17
6efaa00c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
lxc-oracle.in
templates/lxc-oracle.in
+19
-15
No files found.
templates/lxc-oracle.in
View file @
56c80e0d
...
@@ -145,21 +145,25 @@ EOF
...
@@ -145,21 +145,25 @@ EOF
# OL7 has systemd, no rc.sysinit
# OL7 has systemd, no rc.sysinit
if
[
$container_release_major
=
"7"
]
;
then
if
[
$container_release_major
=
"7"
]
;
then
# from mhw in the fedora template: We do need to disable the
# with newer systemd (OL7.2), getty service include container-getty.service
# "ConditionalPathExists=/dev/tty0" line or no gettys are started on
# let that be the one who manage the getty service instead
# the ttys in the container. Lets do it in an override copy of the
if
[
!
-f
$container_rootfs
/usr/lib/systemd/system/container-getty@.service
]
;
then
# service so it can still pass rpm verifies and not be automatically
# from mhw in the fedora template: We do need to disable the
# updated by a new systemd version.
# "ConditionalPathExists=/dev/tty0" line or no gettys are started on
sed
-e
's/^ConditionPathExists=/#LXC ConditionPathExists=/'
\
# the ttys in the container. Lets do it in an override copy of the
<
$container_rootfs
/usr/lib/systemd/system/getty
\@
.service
\
# service so it can still pass rpm verifies and not be automatically
>
$container_rootfs
/etc/systemd/system/getty
\@
.service
# updated by a new systemd version.
# Setup getty service on the 4 ttys we are going to allow in the
sed
-e
's/^ConditionPathExists=/#LXC ConditionPathExists=/'
\
# default config. Number should match lxc.tty
<
$container_rootfs
/usr/lib/systemd/system/getty
\@
.service
\
(
cd
$container_rootfs
/etc/systemd/system/getty.target.wants
>
$container_rootfs
/etc/systemd/system/getty
\@
.service
for
i
in
1 2 3 4
;
do
ln
-sf
../getty
\@
.service getty@tty
${
i
}
.service
;
done
)
# Setup getty service on the 4 ttys we are going to allow in the
# We only want to spawn a getty on /dev/console in lxc, libvirt-lxc
# default config. Number should match lxc.tty
# symlinks /dev/console to /dev/tty1
(
cd
$container_rootfs
/etc/systemd/system/getty.target.wants
sed
-i
'/Before=getty.target/a ConditionVirtualization=lxc'
$container_rootfs
/usr/lib/systemd/system/console-getty.service
for
i
in
1 2 3 4
;
do
ln
-sf
../getty
\@
.service getty@tty
${
i
}
.service
;
done
)
# We only want to spawn a getty on /dev/console in lxc, libvirt-lxc
# symlinks /dev/console to /dev/tty1
sed
-i
'/Before=getty.target/a ConditionVirtualization=lxc'
$container_rootfs
/usr/lib/systemd/system/console-getty.service
fi
# disable some systemd services, set default boot, sigpwr target
# disable some systemd services, set default boot, sigpwr target
rm
-f
$container_rootfs
/usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service
rm
-f
$container_rootfs
/usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service
...
...
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