Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 446018
Collapse All | Expand All

(-)a/NEWS.md (+13 lines)
Lines 4-9 OpenRC NEWS Link Here
4
This file will contain a list of notable changes for each release. Note
4
This file will contain a list of notable changes for each release. Note
5
the information in this file is in reverse order.
5
the information in this file is in reverse order.
6
6
7
## OpenRC 0.40
8
9
In this version, the keymaps and termencoding services on Linux needed
10
to be modified so they do not write to the root file system. This was
11
done so they can run earlier in the boot sequence. AS a result, you will
12
need to add save-termencoding and save-keymaps to your boot runlevel.
13
This can be done as follows:
14
15
```
16
# rc-update add save-keymaps boot
17
# rc-update add save-termencoding boot
18
```
19
7
## OpenRC 0.39
20
## OpenRC 0.39
8
21
9
This version removes the support for addons.
22
This version removes the support for addons.
(-)a/init.d/.gitignore (+2 lines)
Lines 41-46 rc-enabled Link Here
41
rpcbind
41
rpcbind
42
runsvdir
42
runsvdir
43
savecore
43
savecore
44
save-keymaps
45
save-termencoding
44
swap-blk
46
swap-blk
45
swclock
47
swclock
46
syslogd
48
syslogd
(-)a/init.d/Makefile (-2 / +2 lines)
Lines 23-30 SRCS-FreeBSD+= adjkerntz.in devd.in dumpon.in encswap.in ipfw.in \ Link Here
23
23
24
SRCS-Linux=	agetty.in binfmt.in devfs.in cgroups.in dmesg.in hwclock.in \
24
SRCS-Linux=	agetty.in binfmt.in devfs.in cgroups.in dmesg.in hwclock.in \
25
	consolefont.in keymaps.in killprocs.in modules.in \
25
	consolefont.in keymaps.in killprocs.in modules.in \
26
	mount-ro.in mtab.in numlock.in procfs.in net-online.in sysfs.in \
26
	mount-ro.in mtab.in numlock.in procfs.in net-online.in save-keymaps.in \
27
termencoding.in
27
	save-termencoding.in sysfs.in termencoding.in
28
28
29
# Generic BSD scripts
29
# Generic BSD scripts
30
SRCS-NetBSD=	hostid.in moused.in newsyslog.in pf.in rarpd.in rc-enabled.in \
30
SRCS-NetBSD=	hostid.in moused.in newsyslog.in pf.in rarpd.in rc-enabled.in \
(-)a/init.d/keymaps.in (-7 / +2 lines)
Lines 14-20 description="Applies a keymap for the consoles." Link Here
14
depend()
14
depend()
15
{
15
{
16
	need termencoding
16
	need termencoding
17
	after bootmisc clock
17
	after devfs
18
	keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
18
	keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
19
}
19
}
20
20
Lines 68-77 start() Link Here
68
		echo "altgr keycode 18 = U+20AC" | loadkeys -q -
68
		echo "altgr keycode 18 = U+20AC" | loadkeys -q -
69
		eend $?
69
		eend $?
70
	fi
70
	fi
71
71
	return 0
72
	# Save the keymapping for use immediately at boot
73
	if checkpath -W "$RC_LIBEXECDIR"; then
74
		mkdir -p "$RC_LIBEXECDIR"/console
75
		dumpkeys >"$RC_LIBEXECDIR"/console/keymap
76
	fi
77
}
72
}
(-)a/init.d/save-keymaps.in (+28 lines)
Line 0 Link Here
1
#!@SBINDIR@/openrc-run
2
# Copyright (c) 2018 Sony Interactive Entertainment, Inc.
3
#
4
# This file is part of OpenRC. It is subject to the license terms in
5
# the LICENSE file found in the top-level directory of this
6
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
7
# This file may not be copied, modified, propagated, or distributed
8
# except according to the terms contained in the LICENSE file.
9
10
description="Save the keymap for use as early as possible"
11
12
depend()
13
{
14
	need termencoding
15
	after bootmisc clock keymaps
16
	keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
17
}
18
19
start()
20
{
21
	# Save the keymapping for use immediately at boot
22
	ebegin "Saving key mapping"
23
	if checkpath -W "$RC_LIBEXECDIR"; then
24
		mkdir -p "$RC_LIBEXECDIR"/console
25
		dumpkeys >"$RC_LIBEXECDIR"/console/keymap
26
	fi
27
	eend $? "Unable to save keymapping"
28
}
(-)a/init.d/save-termencoding.in (+35 lines)
Line 0 Link Here
1
#!@SBINDIR@/openrc-run
2
# Copyright (c) 2018 Sony Interactive Entertainment, Inc.
3
#
4
# This file is part of OpenRC. It is subject to the license terms in
5
# the LICENSE file found in the top-level directory of this
6
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
7
# This file may not be copied, modified, propagated, or distributed
8
# except according to the terms contained in the LICENSE file.
9
10
description="Configures terminal encoding."
11
12
ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}}
13
: ${unicode:=${UNICODE}}
14
15
depend()
16
{
17
	keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
18
	use root
19
	after bootmisc clock termencoding
20
}
21
22
start()
23
{
24
ebegin "Saving terminal encoding"
25
	# Save the encoding for use immediately at boot
26
	if checkpath -W "$RC_LIBEXECDIR"; then
27
		mkdir -p "$RC_LIBEXECDIR"/console
28
		if yesno ${unicode:-${UNICODE}}; then
29
			echo "" > "$RC_LIBEXECDIR"/console/unicode
30
		else
31
			rm -f "$RC_LIBEXECDIR"/console/unicode
32
		fi
33
	fi
34
	eend 0
35
}
(-)a/init.d/termencoding.in (-2 / +1 lines)
Lines 17-24 ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}} Link Here
17
depend()
17
depend()
18
{
18
{
19
	keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
19
	keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
20
	use root
20
	after devfs
21
	after bootmisc clock
22
}
21
}
23
22
24
start()
23
start()
(-)a/runlevels/Makefile (-2 / +2 lines)
Lines 36-42 BOOT-FreeBSD+= hostid modules newsyslog savecore syslogd Link Here
36
# FreeBSD specific stuff
36
# FreeBSD specific stuff
37
BOOT-FreeBSD+=	adjkerntz dumpon syscons
37
BOOT-FreeBSD+=	adjkerntz dumpon syscons
38
38
39
BOOT-Linux+=	binfmt hwclock keymaps modules mtab procfs termencoding
39
BOOT-Linux+=	binfmt hwclock keymaps modules mtab procfs save-keymaps \
40
	save-termencoding termencoding
40
SHUTDOWN-Linux=	killprocs mount-ro
41
SHUTDOWN-Linux=	killprocs mount-ro
41
SYSINIT-Linux=	devfs cgroups dmesg sysfs
42
SYSINIT-Linux=	devfs cgroups dmesg sysfs
42
43
43
- 

Return to bug 446018