Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 260899 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]
patch against the experimental branch
0001-Use-devtpmfs-when-avaible.patch (text/plain), 1.35 KB, created by
Xake
on 2011-01-28 09:44:05 UTC
(
hide
)
Description:
patch against the experimental branch
Filename:
MIME Type:
Creator:
Xake
Created:
2011-01-28 09:44:05 UTC
Size:
1.35 KB
patch
obsolete
>From dc59066c831c854d8610c01121f59d3edb77b403 Mon Sep 17 00:00:00 2001 >From: Peter Hjalmarsson <xake@rymdraket.net> >Date: Wed, 19 Jan 2011 23:49:24 +0100 >Subject: [PATCH 1/4] Use devtpmfs when avaible > >--- > defaults/initrd.scripts | 9 +++++++-- > defaults/linuxrc | 2 ++ > 2 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts >index d0f8de5..5684c4e 100755 >--- a/defaults/initrd.scripts >+++ b/defaults/initrd.scripts >@@ -307,8 +307,13 @@ run_shell() { > } > > runmdev() { >- # busybox udev replacement >- mdev -s >+ # Use devtmpfs if enabled in kernel, >+ # else busybox udev replacement >+ if grep -qs devtmpfs /proc/filesystems ; then >+ mount -t devtmpfs devtmpfs /dev >+ else >+ mdev -s >+ fi > } > > test_success() { >diff --git a/defaults/linuxrc b/defaults/linuxrc >index 0083fce..d8b910c 100755 >--- a/defaults/linuxrc >+++ b/defaults/linuxrc >@@ -730,6 +730,8 @@ fi > 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 >+grep -qs devtmpfs /proc/mounts && ( umount /dev || echo '*: Failed to unmount the devtmpfs /dev!' ) > umount /sys || echo '*: Failed to unmount the ramdisk /sys!' > umount /proc || echo '*: Failed to unmount the ramdisk /proc!' > echo -e "${BOLD}.${NORMAL}" >-- >1.7.4.rc3 >
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