Commits

Rodrigo Bistolfi committed 0bfdd38

Test for initrd before copying

Comments (0)

Files changed (1)

vinstall/backend/bootloader.py

                         system.initrd)
                 initrd_dest = os.path.join("/boot/tamu",
                         system.initrd)
-                if not os.path.exists(initrd_dest):
+                if os.path.exists(initrd_from) and \
+                        not os.path.exists(initrd_dest):
                     shutil.copy2(initrd_from, initrd_dest)
 
             # umount if needed