Commits

Rodrigo Bistolfi committed 9e12c67

Fix bug causing mkinitrd being executed with old fs

  • Participants
  • Parent commits 8719b50

Comments (0)

Files changed (2)

vinstall/controller/bootloader.py

     def mkinitrd(self):
         LOG.debug("Creating initrd")
         root = self.config["target_device"]
-        fs = root.query_filesystem()
+        fs = self.config["target_device_fs"]
         try:
             utils.mkinitrd(root.path(), fs)
         except Exception as e:

vinstall/controller/mountpoints.py

         """Save root partition selection for use in other controllers
 
         """
-        root = next(p for p, m in data.items() if m[0] == "/")
+        root, fs = next(p, m[1] for p, m in data.items() if m[0] == "/")
         self.config["target_device"] = root
+        self.config["target_device_fs"] = fs
 
     def mount_target(self, data):
         """Mount target partitions