Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 291330 Details for
Bug 334171
check of rootfs is already mounted rw is insufficient
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch for this
diff2 (text/plain), 1.10 KB, created by
Bill Nottingham
on 2008-01-10 20:49:52 UTC
(
hide
)
Description:
patch for this
Filename:
MIME Type:
Creator:
Bill Nottingham
Created:
2008-01-10 20:49:52 UTC
Size:
1.10 KB
patch
obsolete
>? cow >? netconsole >Index: rc.d/rc.sysinit >=================================================================== >RCS file: /usr/local/CVS/initscripts/rc.d/rc.sysinit,v >retrieving revision 1.571.4.10 >diff -u -r1.571.4.10 rc.sysinit >--- rc.d/rc.sysinit 10 Jan 2008 19:45:14 -0000 1.571.4.10 >+++ rc.d/rc.sysinit 10 Jan 2008 20:31:13 -0000 >@@ -703,11 +703,27 @@ > action $"Checking local filesystem quotas: " /sbin/quotacheck -aRnug > fi > >+remount_needed() { >+ local state oldifs >+ [ "$READONLY" = "yes" ] && return 1 >+ state=`LC_ALL=C awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts` >+ oldifs=$IFS >+ IFS="," >+ for opt in $state ; do >+ if [ "$opt" = "rw" ]; then >+ IFS=$oldifs >+ return 1 >+ fi >+ done >+ IFS=$oldifs >+ return 0 >+} >+ > # Remount the root filesystem read-write. > update_boot_stage RCmountfs >-state=`LC_ALL=C awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts` >-[ "$state" != "rw" -a "$READONLY" != "yes" ] && \ >+if remount_needed ; then > action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw / >+fi > > # Clean up SELinux labels > if [ -n "$SELINUX_STATE" ]; then
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 334171
: 291330