Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 3706 Details for
Bug 7405
/etc/init.d/checkfs gives errors on raid
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for checkfs and halt.sh
initraid.patch (text/plain), 1.02 KB, created by
Wilbert van Bakel
on 2002-09-06 16:01:10 UTC
(
hide
)
Description:
patch for checkfs and halt.sh
Filename:
MIME Type:
Creator:
Wilbert van Bakel
Created:
2002-09-06 16:01:10 UTC
Size:
1.02 KB
patch
obsolete
>--- checkfs Tue Sep 3 11:09:17 2002 >+++ /etc/init.d/checkfs Fri Sep 6 13:13:45 2002 >@@ -27,10 +27,13 @@ > # Start software raid > if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ] > then >- ebegin "Starting software RAID" >- # still echo stderr for debugging >- /sbin/raidstart --all >/dev/null >- eend $? "Failed to start software RAID" >+ if [ $(grep -c active /proc/mdstat) -lt 1 ] >+ then >+ ebegin "Starting software RAID" >+ # still echo stderr for debugging >+ /sbin/raidstart --all >/dev/null >+ eend $? "Failed to start software RAID" >+ fi > fi > > if [ -f /fastboot ] > >--- halt.sh Tue Sep 3 11:09:17 2002 >+++ /etc/init.d/halt.sh Fri Sep 6 14:11:27 2002 >@@ -87,9 +87,12 @@ > #stop RAID > if [ -x /sbin/raidstart -a -f /etc/raidtab -a -f /proc/mdstat ] > then >- ebegin "Stopping software RAID" >- raidstop -a >- eend $? "Failed to stop software RAID" >+ if [ $(mount|grep -c "/dev/md") -lt 1 ] >+ then >+ ebegin "Stopping software RAID" >+ raidstop -a >+ eend $? "Failed to stop software RAID" >+ fi > fi > > #stop LVM
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 7405
: 3706