diff options
author | James Meyer <james.meyer@operamail.com> | 2012-12-13 19:14:43 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-12-13 19:14:43 (GMT) |
commit | b3c1f8f3546f92e6be7addaee066e5130678bbc1 (patch) | |
tree | cfebdc5b948f9ad52bfeecca659d80e1f5e34c0c | |
parent | 304bb82306baede7239abf072218d1a0dd9a11e5 (diff) | |
download | linhes_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.
-rw-r--r-- | abs/core/LinHES-system/add_storage.py | 6 |
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": |