Add check /mnt for readonly before format.

netsetup
Mike Hiretsky 14 years ago
parent f5ef07b04e
commit 0d3494d631

Binary file not shown.

@ -1843,6 +1843,10 @@ the system") + " (yes/no)"
self.generateHashRoot(stdinRead=stdinReadPwd) self.generateHashRoot(stdinRead=stdinReadPwd)
addUsers = self.generateHashUsers(stdinRead=stdinReadPwd) addUsers = self.generateHashUsers(stdinRead=stdinReadPwd)
migrateUsers = self.getNamesMigrateUsers() migrateUsers = self.getNamesMigrateUsers()
mntpath = '/mnt'
if not os.access(mntpath,os.W_OK):
raise InstallError(
_("Impossible create directory in '%s'")%mntpath)
# cmd options # cmd options
self.printMessageForTest(_("Formating partitions")) self.printMessageForTest(_("Formating partitions"))
targetDistr.performFormat() targetDistr.performFormat()
@ -1896,11 +1900,11 @@ the system") + " (yes/no)"
self.printByResult(False) self.printByResult(False)
try: try:
self.closeClTemplate() self.closeClTemplate()
if sourceDistr: if sourceDistr and sourceDistr.childs:
self.printMessageForTest(_("Releasing source distributive")) self.printMessageForTest(_("Releasing source distributive"))
sourceDistr.close() sourceDistr.close()
self.printByResult(True) self.printByResult(True)
if targetDistr: if targetDistr and targetDistr.childs:
self.printMessageForTest(_("Unmount target system volume")) self.printMessageForTest(_("Unmount target system volume"))
targetDistr.close() targetDistr.close()
self.printByResult(True) self.printByResult(True)

Loading…
Cancel
Save