summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/add_storage.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-system/add_storage.py')
-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":