Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 261281 Details for
Bug 353024
genkernel should use devtmpfs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Move devtmpfs from ramdisk to chroot
0002-Move-dev-to-chroot.patch (text/plain), 1.27 KB, created by
Xake
on 2011-02-01 18:57:23 UTC
(
hide
)
Description:
Move devtmpfs from ramdisk to chroot
Filename:
MIME Type:
Creator:
Xake
Created:
2011-02-01 18:57:23 UTC
Size:
1.27 KB
patch
obsolete
>From 50bc53fc354f2c7712836b3539daad30d82c795f Mon Sep 17 00:00:00 2001 >From: Peter Hjalmarsson <xake@rymdraket.net> >Date: Tue, 1 Feb 2011 19:34:54 +0100 >Subject: [PATCH 2/2] Move dev to chroot > >This can be considered good practice, likely less chance that nodes >created in the ramdisk disapperes when switching root. >Some applications (mostly debugging/benchmarking) also needs this to >survive the switch_root. >--- > defaults/linuxrc | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/defaults/linuxrc b/defaults/linuxrc >index ee33a35..88eed00 100755 >--- a/defaults/linuxrc >+++ b/defaults/linuxrc >@@ -725,10 +725,14 @@ cd "${CHROOT}" > mkdir "${CHROOT}/proc" "${CHROOT}/sys" 2>/dev/null > echo -ne "${BOLD}.${NORMAL}" > >-# If devtmpfs is mounted assume genkernel mounted it at /dev and try unmounting it >+# If devtmpfs is mounted, try move it to the new root >+# If that fails, try to unmount all possible mounts of devtmpfs as stuff breaks otherwise > if grep -qs devtmpfs /proc/mounts > then >- umount /dev || echo '*: Failed to unmount the devtmpfs /dev!' >+ if ! mount --move /dev "${CHROOT}"/dev >+ then >+ umount -a -t devtmpfs || echo '*: Failed to move and unmount the devtmpfs /dev!' >+ fi > fi > > umount /sys || echo '*: Failed to unmount the ramdisk /sys!' >-- >1.7.4 >
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 353024
:
260899
|
261279
| 261281 |
261749