Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 43469 Details for
Bug 70349
filesystems should be forced to remount ro if normal remount fails in halt.sh
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for halt.sh
halt.sh.patch (text/plain), 1.12 KB, created by
Marcin Kryczek (RETIRED)
on 2004-11-07 06:10:53 UTC
(
hide
)
Description:
patch for halt.sh
Filename:
MIME Type:
Creator:
Marcin Kryczek (RETIRED)
Created:
2004-11-07 06:10:53 UTC
Size:
1.12 KB
patch
obsolete
>--- /tmp/halt.sh 2004-11-07 15:09:26.335336224 +0100 >+++ /etc/init.d/halt.sh 2004-11-07 15:02:56.000000000 +0100 >@@ -1,6 +1,6 @@ > # Copyright 1999-2004 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 >-# $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v 1.62 2004/10/28 19:18:38 azarah Exp $ >+# $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v 1.60 2004/10/26 02:01:11 vapier Exp $ > > # Check to see if this is a livecd, if it is read the commandline > # this mainly makes sure $CDBOOT is defined if it's a livecd >@@ -211,7 +211,12 @@ > do > # ${x} needs to be quoted to handle octal sequences such as > # \040 (see bug 51351) >- mount -n -o remount,ro "${x}" &>/dev/null >+ if [ "$force_remount" = "1" ]; then >+ ewarn " Forcing remount ${x}" >+ mount -f -n -o remount,ro "${x}" &>/dev/null >+ else >+ mount -n -o remount,ro "${x}" &>/dev/null >+ fi > retval=$((${retval} + $?)) > done > >@@ -233,6 +238,9 @@ > sync; sync > [ -f /etc/killpower ] && ups_kill_power > /sbin/sulogin -t 10 /dev/console >+ force_remount="1" >+ mount_readonly >+ sleep 5 > else > eend 0 > fi
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 70349
: 43469