modify fstab, check partitions
modified: dialog/di_dialog.py modified: interface/ri_oper.py modified: operation/configure_fstab.sh
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user