- utils.sysexec_noerr( "umount %s/proc" % SYSIMG_PATH , log )
- utils.sysexec_noerr( "umount %s/mnt/cdrom" % SYSIMG_PATH , log )
- utils.sysexec_noerr( "umount %s/vservers" % SYSIMG_PATH , log )
- utils.sysexec_noerr( "umount %s/sys" % SYSIMG_PATH , log )
- utils.sysexec_noerr( "umount %s/dev" % SYSIMG_PATH , log )
- utils.sysexec_noerr( "umount %s" % SYSIMG_PATH , log )
- vars['ROOT_MOUNTED']= 0
+ utils.sysexec_noerr("umount {}/proc".format(SYSIMG_PATH), log )
+ utils.sysexec_noerr("umount {}/mnt/cdrom".format(SYSIMG_PATH), log )
+ utils.sysexec_noerr("umount {}/vservers".format(SYSIMG_PATH), log )
+ utils.sysexec_noerr("umount {}/sys".format(SYSIMG_PATH), log )
+ utils.sysexec_noerr("umount {}/dev".format(SYSIMG_PATH), log )
+ utils.sysexec_noerr("umount {}".format(SYSIMG_PATH), log )
+ vars['ROOT_MOUNTED'] = 0