Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 246716 Details for
Bug 336723
baselayout-1_12 (rev. 3163): we cannot rely on stat (associated with #291916)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rc-is_mounted-instead-of-stat.patch
rc-is_mounted-instead-of-stat.patch (text/plain), 1.72 KB, created by
Amadeusz Żołnowski (RETIRED)
on 2010-09-10 14:46:10 UTC
(
hide
)
Description:
rc-is_mounted-instead-of-stat.patch
Filename:
MIME Type:
Creator:
Amadeusz Żołnowski (RETIRED)
Created:
2010-09-10 14:46:10 UTC
Size:
1.72 KB
patch
obsolete
>Index: branches/baselayout-1_12/sbin/rc >=================================================================== >--- branches/baselayout-1_12/sbin/rc (revision 3174) >+++ branches/baselayout-1_12/sbin/rc (working copy) >@@ -218,12 +218,10 @@ > > # make sure /proc/ isn't full of crap #291916 > do_mnt=1 >- if [[ -e /proc/uptime ]] ; then >- if [[ $(stat / -c %d) == $(stat /proc -c %d) ]] ; then >- ewarn "You have crap in your /proc/; please clean it; see #291916" >- else >- do_mnt=0 >- fi >+ if is_mounted /proc proc; then >+ do_mnt=0 >+ elif ! is_clean /proc; then >+ ewarn "You have crap in your /proc/; please clean it; see #291916" > fi > > if [[ ${do_mnt} == 1 ]] ; then >@@ -236,7 +234,7 @@ > try mount -n ${mntcmd:--t proc proc /proc -o noexec,nosuid,nodev} > eend $? > else >- einfo "Skipping mount of /proc as /proc/uptime exists" >+ einfo "Skipping mount of /proc as /proc/mounts exists" > fi > > # Start profiling init now we have /proc >@@ -251,12 +249,10 @@ > if [[ -d /sys ]] ; then > # make sure /sys/ isn't full of crap #291916 > do_mnt=1 >- if [[ -e /sys/kernel ]] ; then >- if [[ $(stat / -c %d) == $(stat /sys -c %d) ]] ; then >- ewarn "You have crap in your /sys/; please clean it; see #291916" >- else >- do_mnt=0 >- fi >+ if is_mounted /sys sys; then >+ do_mnt=0 >+ elif ! is_clean /sys; then >+ ewarn "You have crap in your /sys/; please clean it; see #291916" > fi > > if [[ ${do_mnt} == 1 ]] ; then >@@ -269,7 +265,7 @@ > try mount -n ${mntcmd:--t sysfs sysfs /sys -o noexec,nosuid,nodev} > eend $? > else >- einfo "Skipping mount of /sys as /sys/kernel exists" >+ einfo "Skipping mount of /sys as it's already mounted" > fi > else > ewarn "No /sys to mount sysfs needed in 2.6 and later kernels!"
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 336723
:
246715
|
246716
|
247871
|
248375
|
248377