X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FValidateNodeInstall.py;h=845348a17fc73bbc7f26c873f974ac1e206425f3;hb=21ad5ef5cec09027e46212ef52f9cf4aaeab675d;hp=393e8f532d76c7200a929d29e2f7ea72cddfb30d;hpb=0003e244cb2677a5575f6a833e6e646ffb7b5f8e;p=bootmanager.git diff --git a/source/steps/ValidateNodeInstall.py b/source/steps/ValidateNodeInstall.py index 393e8f5..845348a 100644 --- a/source/steps/ValidateNodeInstall.py +++ b/source/steps/ValidateNodeInstall.py @@ -93,6 +93,7 @@ def Run( vars, log ): except BootManagerException, e: log.write( "BootManagerException during fsck of /root and /vservers : %s\n" % str(e) ) + return -1 try: # then attempt to mount them @@ -111,7 +112,7 @@ def Run( vars, log ): except BootManagerException, e: log.write( "BootManagerException during mount of /root, /vservers and /proc: %s\n" % str(e) ) - return 0 + return -2 ROOT_MOUNTED= 1 vars['ROOT_MOUNTED']= 1 @@ -125,7 +126,7 @@ def Run( vars, log ): os.stat("%s/boot/initrd-boot" % SYSIMG_PATH) except OSError, e: log.write( "Couldn't locate base kernel (you might be using the stock kernel).\n") - return 0 + return -3 # check if the model specified kernel is installed option = ''