Changeset 217


Ignore:
Timestamp:
Nov 9, 2017, 11:25:47 PM (8 years ago)
Author:
Ben Rietbroek
Message:

Skip disks with a LUKS Signature [v1.1.3-testing]

This is a quick-n-dirty hack to skip LUKS encrypted disks.
LUKS disks are not truly recognized and this hack has the semantics of
the disk having no partitions.

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.2-manual.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/regular/driveio.asm

    r216 r217  
    327327        jz      DIOLP_Success
    328328
     329        ; ---------------------------------------------------- [Check for LUKS]
     330        ; Check for LUKS signature
     331        ; If the LUKS signature is foud, set CY and exit to indicate no
     332        ; are found partitions. This prevents LUKS disks from appearing in the
     333        ; menu in the off chance the luks-sector has a 0xaa55 at offset 0x01fe.
     334        cmp     word ptr [si+00h], 554ch    ; 'LU'
     335        jne     @F
     336        cmp     word ptr [si+02h], 534bh    ; 'KS'
     337        stc
     338        jz      DIOLP_Success
     339
     340    @@:
    329341        clc
    330342        cmp     wptr [si+LocBR_Magic], 0AA55h
Note: See TracChangeset for help on using the changeset viewer.