Giter Site home page Giter Site logo

Comments (8)

neusdan avatar neusdan commented on May 28, 2024

Hi, currently TrustedGRUB2 only supports TPM features in legacy BIOS/MBR boot mode. But UEFI booting should still work, as GRUB2 supports UEFI.

I'm wondering why you are calling grub-bios-setup. I think this is the legacy mbr mode install.

from trustedgrub2.

baaltommysu avatar baaltommysu commented on May 28, 2024

Hi, I only run the install command as instructed in the README.md, this is the command I run:

./INSTALLDIR/sbin/grub-install --directory=INSTALLDIR/lib/grub/i386-pc /dev/sda 

And the output is the one I showed above.

Is there some other argument I should add in this command? Or there is some other command I should execute?

Another question, if TrustedGRUB2 only supports TPM feasures in legacy BIOS/MBR boot mode, what will happen if TrustedGRUB2 is installed and only UEFI boot mode is allowed?
The TPM will not be used and no module will be measured and extended into PCRs?

Thank you very much

from trustedgrub2.

neusdan avatar neusdan commented on May 28, 2024

You probably have to add --target=x86_64-efi to the grub-install command. But i have never installed GRUB2 in UEFI-Mode. So you should look for GRUB2 documentation on that topic.

In theory, if you install TrustedGRUB2 in UEFI-Mode, the TPM features are just disabled and TrustedGRUB2 acts as a normal GRUB2. But i've never tested it.

from trustedgrub2.

baaltommysu avatar baaltommysu commented on May 28, 2024

I tried to add --target=x86_64-efi to the grub-install command, but the result is the same, I re-paste the output here:

bash /root/TrustedGRUB2/sbin/grub-install --target=x86_64-efi --directory=/root/TrustedGRUB2/lib/grub/i386-pc /dev/sda
/root/TrustedGRUB2/sbin/grub-bios-setup: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
/root/TrustedGRUB2/sbin/grub-bios-setup: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
/root/TrustedGRUB2/sbin/grub-bios-setup: error: will not proceed with blocklists.

Any idea why and how to fix it?

Thank you very much!!!

from trustedgrub2.

neusdan avatar neusdan commented on May 28, 2024

You have compiled TrustedGRUB2 for i386-pc platform.

Try to rebuild with the following configure options: --with-platform="efi" --target="x86_64" or --target="i386" depending on your platform.

You have also to adjust the --directory parameter in the grub-install command.

Maybe the GRUB2 mailing list is the better place to ask. At the moment i can only support legacy bios installations and i have no experience with GRUB2 in UEFI-mode.

from trustedgrub2.

baaltommysu avatar baaltommysu commented on May 28, 2024

Hi, thank you for your answer.
I tried to compile TrustedGRUB2 with --with-platform="efi" --target="x86_64", and then make will always fail with the following error:

grub-core/disk/luks.c:33:30: fatal error: grub/machine/tpm.h: No such file or directory
#include <grub/machine/tpm.h>
                          ^
compilation terminated.

This error is caused by the argument of --with-platform=efi.
I will also try to look for answers from other where, thank you very much for your time.

from trustedgrub2.

neusdan avatar neusdan commented on May 28, 2024

Hi,

i understand where this error comes from and could fix that. But because TrustedGRUB2 does not support UEFI at the moment, it doesn't make much sense.

So, if you wan't to use TrustedGRUB2 use legacy mode. If you wan't to have a UEFI Bootloader without TPM features use GRUB2.

from trustedgrub2.

baaltommysu avatar baaltommysu commented on May 28, 2024

OK, thank you very much. I will close this issue.

from trustedgrub2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.