From b3c1f8f3546f92e6be7addaee066e5130678bbc1 Mon Sep 17 00:00:00 2001 From: James Meyer <james.meyer@operamail.com> Date: Thu, 13 Dec 2012 13:14:43 -0600 Subject: LinHES-system: add_storage.py , set the fstype in fstab. Using auto proved to be a problem when using xfs/reiserfs. --- abs/core/LinHES-system/add_storage.py | 6 ++++-- 1 file 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": -- cgit v0.12