modify fstab, check partitions

modified:   dialog/di_dialog.py
	modified:   interface/ri_oper.py
	modified:   operation/configure_fstab.sh
This commit is contained in:
hbjia
2012-10-31 15:44:42 +08:00
parent f5c38cd5b7
commit 8ecec09ea7
3 changed files with 12 additions and 14 deletions

View File

@@ -226,7 +226,14 @@ class ConfigureFstab(Mount):
if ri_data.MountPoint.dict[k].filesystem == 'swap':
fstab += '/dev/%s swap swap\n' %k
break
return fstab
# process fstab to sort
fstab_new = ''
cmd_t = "echo '%s' | sort -k 2" %fstab
std_out = os.popen(cmd_t).readlines()
for l in std_out:
fstab_new += l
return fstab_new
class GenerateIssue(Operation):
"""class for generate /etc/issue"""