Commits

Moises Henriquez  committed af9b56a

Revise test for partition vs disk on bootloader target

  • Participants
  • Parent commits 4d5cc18
  • Branches bootloader_error_prevention

Comments (0)

Files changed (1)

File vinstall/backend/bootloader.py

             return False
         # If target is partition, return True
         # FIXME:  What about raid support?  This is a lame way to test for this.
-        if len(self.target) == len('/dev/sda1'):
+        if self.target[-1].isdigit():
             return True
         
         tdev = parted.Device(self.target)