Commits

Rodrigo Bistolfi committed e56c25d

utils: Handle reiserfs format options special case

Comments (0)

Files changed (1)

vinstall/backend/utils.py

     """
     if 'swap' in filesystem:
         command = 'mkswap %s'% path
+    elif 'reiser' in filesystem:
+        command = 'mkfs.%s -f -f %s' % (filesystem, path)
     else:
         command = 'mkfs.%s -F %s' % (filesystem, path)
     subprocess.call(command.split())
 
+
 def activate_swap(path=None):
     if path is None:
         #Activate all swap space
     """
     def __init__(self, new_root, chdir=True):
         self.new_root = new_root
-        self.chdir = True
+        self.chdir = chdir
 
     def __enter__(self):
         """Save current root for restoring later