- if (vars['ONE_PARTITION']!='1'):
- utils.sysexec( "umount %s/vservers" % SYSIMG_PATH, log )
- utils.sysexec( "umount %s/proc" % SYSIMG_PATH, log )
- utils.sysexec_noerr( "umount %s/dev" % SYSIMG_PATH, log )
- utils.sysexec_noerr( "umount %s/sys" % SYSIMG_PATH, log )
- utils.sysexec( "umount %s" % SYSIMG_PATH, log )
- utils.sysexec( "vgchange -an", log )
+ if (vars['ONE_PARTITION'] != '1'):
+ utils.sysexec("umount {}/vservers".format(SYSIMG_PATH), log)
+ utils.sysexec("umount {}s/proc".format(SYSIMG_PATH), log)
+ utils.sysexec_noerr("umount {}s/dev".format(SYSIMG_PATH), log)
+ utils.sysexec_noerr("umount {}s/sys".format(SYSIMG_PATH), log)
+ utils.sysexec("umount {}s".format(SYSIMG_PATH), log)
+ utils.sysexec("vgchange -an", log)