git://git.onelab.eu
/
bootmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e616251
)
try to recover filesystems errors
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Tue, 29 Jun 2010 21:23:23 +0000
(21:23 +0000)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Tue, 29 Jun 2010 21:23:23 +0000
(21:23 +0000)
source/steps/ValidateNodeInstall.py
patch
|
blob
|
history
diff --git
a/source/steps/ValidateNodeInstall.py
b/source/steps/ValidateNodeInstall.py
index
63a90dc
..
8ff7645
100644
(file)
--- a/
source/steps/ValidateNodeInstall.py
+++ b/
source/steps/ValidateNodeInstall.py
@@
-94,7
+94,13
@@
def Run( vars, log ):
except BootManagerException, e:
log.write( "BootManagerException during fsck of %s (%s) filesystem : %s\n" %
(filesystem, PARTITIONS[filesystem], str(e)) )
except BootManagerException, e:
log.write( "BootManagerException during fsck of %s (%s) filesystem : %s\n" %
(filesystem, PARTITIONS[filesystem], str(e)) )
- return -1
+ try:
+ log.write( "Trying to recover filesystem errors on %s\n" % filesystem )
+ utils.sysexec("e2fsck -v -y %s" % (PARTITIONS[filesystem]),log)
+ except BootManagerException, e:
+ log.write( "BootManagerException during trying to recover filesystem errors on %s (%s) filesystem : %s\n" %
+ (filesystem, PARTITIONS[filesystem], str(e)) )
+ return -1
try:
# then attempt to mount them
try:
# then attempt to mount them