modify code for bug1241, note user to partition before install the system, adjust /etc/fstab
modified: dialog/di_dialog.py modified: interface/ri_data.py modified: interface/ri_tk_cmd.py modified: operation/configure_fstab.sh
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import re
|
||||
import re,os
|
||||
import commands
|
||||
from xml.dom import minidom
|
||||
from xml.dom.ext import PrettyPrint
|
||||
@@ -52,6 +52,12 @@ class Partition:
|
||||
self.from_os = fr
|
||||
Partition.dict[dev] = self
|
||||
|
||||
@staticmethod
|
||||
def check_partitions():
|
||||
cmd = "grep d[a-z][0-9] /proc/partitions>/dev/null"
|
||||
ret = os.system(cmd)
|
||||
return ret
|
||||
|
||||
@staticmethod
|
||||
def init_from_os():
|
||||
''' create a Partition instance from hardware info'''
|
||||
|
||||
Reference in New Issue
Block a user