Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 342830 Details for
Bug 438380
[tracker] software that relies on /dev/root
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix prev. patch to create /dev/root also for rc_coldplug=NO setups
udev-init-scripts-24-dev-root-link.patch (text/plain), 1.13 KB, created by
Samuli Suominen (RETIRED)
on 2013-03-21 08:29:56 UTC
(
hide
)
Description:
Fix prev. patch to create /dev/root also for rc_coldplug=NO setups
Filename:
MIME Type:
Creator:
Samuli Suominen (RETIRED)
Created:
2013-03-21 08:29:56 UTC
Size:
1.13 KB
patch
obsolete
>--- helpers/dev-root-link.sh >+++ helpers/dev-root-link.sh >@@ -0,0 +1,18 @@ >+#!/bin/sh -e >+# >+# dev-root-link.sh: create compability /dev/root symlink >+# >+# Distributed under the terms of the GNU General Public License v2 >+ >+RULESDIR=/run/udev/rules.d >+ >+[ -d $RULESDIR ] || mkdir -p $RULESDIR >+ >+eval $(udevadm info --export --export-prefix=ROOT_ --device-id-of-file=/ || true) >+ >+[ "$ROOT_MAJOR" -a "$ROOT_MINOR" ] || exit 0 >+ >+# btrfs filesystems have bogus major/minor numbers >+[ "$ROOT_MAJOR" != 0 ] || exit 0 >+ >+echo 'ACTION=="add|change", SUBSYSTEM=="block", ENV{MAJOR}=="'$ROOT_MAJOR'", ENV{MINOR}=="'$ROOT_MINOR'", SYMLINK+="root"' > $RULESDIR/61-dev-root-link.rules >--- init.d/udev >+++ init.d/udev >@@ -95,6 +95,10 @@ > > populate_dev() > { >+ ebegin "Generate a rule to create /dev/root compability symlink" >+ /lib/udev/dev-root-link.sh >+ eend $? >+ > get_bootparam "nocoldplug" && rc_coldplug="no" > if ! yesno ${rc_coldplug:-${RC_COLDPLUG:-yes}}; then > einfo "Setting /dev permissions and symbolic links" >--- Makefile >+++ Makefile >@@ -9,6 +9,7 @@ > INITD ?= $(SYSCONFDIR)/init.d > > HELPERS = \ >+ helpers/dev-root-link.sh \ > helpers/net.sh > > all:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 438380
:
326560
|
326652
|
342330
|
342828
| 342830