Merge lp://staging/~bcbc/wubi/lp694242-precise into lp://staging/~ubuntu-installer/wubi/precise

Proposed by bcbc
Status: Needs review
Proposed branch: lp://staging/~bcbc/wubi/lp694242-precise
Merge into: lp://staging/~ubuntu-installer/wubi/precise
Diff against target: 69 lines (+33/-0)
3 files modified
debian/changelog (+6/-0)
src/wubi/application.py (+5/-0)
src/wubi/backends/win32/backend.py (+22/-0)
To merge this branch: bzr merge lp://staging/~bcbc/wubi/lp694242-precise
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Pending
Review via email: mp+160475@code.staging.launchpad.net

Description of the change

This patch lets Wubi check whether Windows boots using EFI and, if so, prevents further processing.

The technique used is to examine the output of BCDEDIT for the presence of either bootmgfw.efi or winload.efi. I'm not entirely happy with this technique: ideally there would be a registry entry that is conclusive, but it works on BCDEDIT output I've seen from EFI systems ( http://ubuntuforums.org/showthread.php?t=2070760&p=12296995&viewfull=1#post12296995 )

The check is performed prior to making any changes, so there is no need to download anything or uninstall once it has been determined that Windows boots in is in EFI mode.

I have tested this patch to confirm that it installs as usual on BIOS firmware (tested on Windows 8). The same patch on 13.04 has been tested on Windows XP as well.

I haven't tested it on an EFI computer as I don't own one, but I created a test version that was identical except it searched for a string that happened to exist in my BCDEDIT output.
Ideally, we could build the wubi-r274.exe and then make a call for some community testing to confirm positive tests.

The wubi-12.04-rev274.log file contains the additional line if not using EFI:
04-23 12:10 DEBUG WindowsBackend: EFI boot = False

or if using EFI the following lines:
04-23 12:07 DEBUG WindowsBackend: EFI boot = True
...
04-23 12:08 ERROR root: Wubi does not currently support EFI

There is also a Windows popup with the message: Wubi does not currently support EFI

To post a comment you must log in.
Revision history for this message
bcbc (bcbc) wrote :

I've tested this in VMWare Player with Windows installed in EFI mode and it works as expected.

There's no cleanup, downloading, etc. It detects EFI, gives a message and quits.

Unmerged revisions

274. By bcbc

Prevent installation on EFI systems (LP: #694242)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: