Commits

Moises Henriquez committed bf68ebf

Add fallback path to "boot=" line when disk.id is not available

Comments (0)

Files changed (1)

vinstall/backend/bootloader.py

             if d.path() == self.target:
                 LOG.debug("Identified bootloader target as MBR on %s"% d)
                 bootloader_target = d
-                target_line = os.path.join("/dev/disk/by-id", d.id)
+                if d.id is None:
+                    target_line = self.target
+                else:
+                    target_line = os.path.join("/dev/disk/by-id", d.id)
                 break
         if bootloader_target is None:
             for p in media.Partition.all():
             bitmap_line = "bitmap = /boot/bitmap/boot.bmp"
         else:
             bitmap_line = "# bitmap = /boot/bitmap/boot.bmp"
+
         header = (
             "# LILO configuration file.",
             "# ",