summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-13 19:14:43 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-13 19:14:43 (GMT)
commitb3c1f8f3546f92e6be7addaee066e5130678bbc1 (patch)
treecfebdc5b948f9ad52bfeecca659d80e1f5e34c0c /abs/core/LinHES-system
parent304bb82306baede7239abf072218d1a0dd9a11e5 (diff)
downloadlinhes_pkgbuild-b3c1f8f3546f92e6be7addaee066e5130678bbc1.zip
linhes_pkgbuild-b3c1f8f3546f92e6be7addaee066e5130678bbc1.tar.gz
linhes_pkgbuild-b3c1f8f3546f92e6be7addaee066e5130678bbc1.tar.bz2
LinHES-system: add_storage.py , set the fstype in fstab. Using auto proved to be a problem when using xfs/reiserfs.
Diffstat (limited to 'abs/core/LinHES-system')
-rw-r--r--abs/core/LinHES-system/add_storage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/abs/core/LinHES-system/add_storage.py b/abs/core/LinHES-system/add_storage.py
index 5e85260..1987dff 100644
--- a/abs/core/LinHES-system/add_storage.py
+++ b/abs/core/LinHES-system/add_storage.py
@@ -195,7 +195,8 @@ class disk_device:
#lookup format
current_media_mount = self.find_options_type(fstab)[1]
new_fstype = self.find_fstype(current_media_mount)
-
+ #setting self.new_fstype so that it can be referenced when setting fstab
+ self.new_fstype = new_fstype
#do format
if new_fstype == "xfs":
cmd = "mkfs -t %s -f %s " %(new_fstype,self.block_partition)
@@ -809,7 +810,8 @@ class reconstruct_path:
def add_fstab(self):
- new_fstab_list=['UUID=', 'mount_point', 'auto', 'defaults', '0', '1']
+ #new_fstab_list=['UUID=', 'mount_point', 'auto', 'defaults', '0', '1']
+ new_fstab_list=['UUID=', 'mount_point', self.new_fstype, 'defaults', '0', '1']
fstab=self.read_fstab()
if self.bind == "True":