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 103-108 Link Here
103
		return 0
103
		return 0
104
	fi
104
	fi
105
105
106
	ebegin "Generate a rule for creating /dev/root compability symlink"
107
	/lib/udev/dev-root-link.sh
108
	eend $?
109
106
	ebegin "Populating /dev with existing devices through uevents"
110
	ebegin "Populating /dev with existing devices through uevents"
107
	udevadm trigger --type=subsystems --action=add
111
	udevadm trigger --type=subsystems --action=add
108
	udevadm trigger --type=devices --action=add
112
	udevadm trigger --type=devices --action=add
109
-- Makefile
113
++ 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