Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 438380 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +26 lines)
Line  Link Here
0
-- helpers/dev-root-link.sh
0
++ helpers/dev-root-link.sh
Line 0 Link Here
0
-- init.d/udev
1
#!/bin/sh -e
2
#
3
# dev-root-link.sh: create compability /dev/root symlink
4
#
5
# Distributed under the terms of the GNU General Public License v2
6
7
RULESDIR=/run/udev/rules.d
8
9
[ -d $RULESDIR ] || mkdir -p $RULESDIR
10
11
eval $(udevadm info --export --export-prefix=ROOT_ --device-id-of-file=/ || true)
12
13
[ "$ROOT_MAJOR" -a "$ROOT_MINOR" ] || exit 0
14
15
# btrfs filesystems have bogus major/minor numbers
16
[ "$ROOT_MAJOR" != 0 ] || exit 0
17
18
echo 'ACTION=="add|change", SUBSYSTEM=="block", ENV{MAJOR}=="'$ROOT_MAJOR'", ENV{MINOR}=="'$ROOT_MINOR'", SYMLINK+="root"' > $RULESDIR/61-dev-root-link.rules
19
++ init.d/udev
Lines 95-100 Link Here
95
95
96
populate_dev()
96
populate_dev()
97
{
97
{
98
	ebegin "Generate a rule to create /dev/root compability symlink"
99
	/lib/udev/dev-root-link.sh
100
	eend $?
101
98
	get_bootparam "nocoldplug" && rc_coldplug="no"
102
	get_bootparam "nocoldplug" && rc_coldplug="no"
99
	if ! yesno ${rc_coldplug:-${RC_COLDPLUG:-yes}}; then
103
	if ! yesno ${rc_coldplug:-${RC_COLDPLUG:-yes}}; then
100
		einfo "Setting /dev permissions and symbolic links"
104
		einfo "Setting /dev permissions and symbolic links"
101
-- Makefile
105
++ Makefile
Lines 9-14 Link Here
9
INITD ?= $(SYSCONFDIR)/init.d
9
INITD ?= $(SYSCONFDIR)/init.d
10
10
11
HELPERS = \
11
HELPERS = \
12
	helpers/dev-root-link.sh \
12
	helpers/net.sh
13
	helpers/net.sh
13
14
14
all:
15
all:

Return to bug 438380