[gparted] Recognise additional GRUB2 core.img signatures (!5)



commit 03d47d4d02873720079fc3309f19622736ffa73a
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Tue Jul 17 12:29:14 2018 +0100

    Recognise additional GRUB2 core.img signatures (!5)
    
    Bootinfoscript v0.77 (2018-06-10) added additional signatures to
    recognise GRUB2 core.img by.  Commit:
    
        https://github.com/arvidjaar/bootinfoscript/commit/9a00c1a8877c9693ef908211f3dfd264c6172986
        Add more core.img diskboot signatures
    
    Specifically the new signatures are:
        5256be63 - trustedgrub2 1.4
        5256be56 - diskboot.S with mjg TPM patches (e.g. in openSUSE
                   Tumbleweed)
    
    Add those signatures into GParted.
    
    Closes !5 - Recognise additional GRUB2 core.img signatures

 src/GParted_Core.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index b92d1a3d..de69f0e8 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1324,7 +1324,9 @@ FSType GParted_Core::detect_filesystem_internal( PedDevice * lp_device, PedParti
                {     0LL, "\x52\x56\xBE\x1B",     0LL, NULL  , FS_GRUB2_CORE_IMG },
                {     0LL, "\x52\x56\xBE\x6F",     0LL, NULL  , FS_GRUB2_CORE_IMG },
                {     0LL, "\x52\xE8\x28\x01",     0LL, NULL  , FS_GRUB2_CORE_IMG },
-               {     0LL, "\x52\xBF\xF4\x81",     0LL, NULL  , FS_GRUB2_CORE_IMG }
+               {     0LL, "\x52\xBF\xF4\x81",     0LL, NULL  , FS_GRUB2_CORE_IMG },
+               {     0LL, "\x52\x56\xBE\x63",     0LL, NULL  , FS_GRUB2_CORE_IMG },
+               {     0LL, "\x52\x56\xBE\x56",     0LL, NULL  , FS_GRUB2_CORE_IMG }
        };
        // For simple BitLocker recognition consider validation of BIOS Parameter block
        // fields unnecessary.
@@ -1333,8 +1335,8 @@ FSType GParted_Core::detect_filesystem_internal( PedDevice * lp_device, PedParti
        //
        // Recognise GRUB2 core.img just by any of the possible first 4 bytes of x86 CPU
        // instructions it starts with.
-       // *   bootinfoscript v0.74 line 1963  [GRUB2 core.img possible staring 4 bytes]
-       //     
https://github.com/arvidjaar/bootinfoscript/blob/b1f711e39d7aa4021f4ad3d31468a8b1e1b3fda7/bootinfoscript#L1963
+       // *   bootinfoscript v0.77 line 1990  [GRUB2 core.img possible staring 4 bytes]
+       //     
https://github.com/arvidjaar/bootinfoscript/blob/009f509d59e2f0d39b8d44692e2a81720f5af7b6/bootinfoscript#L1990
 
        for ( unsigned int i = 0 ; i < sizeof( signatures ) / sizeof( signatures[0] ) ; i ++ )
        {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]