Discussion:
Compiling CoreOS's GRUB under Ubuntu
Artem Leshchev
2018-06-20 11:20:18 UTC
Permalink
Hello everybody. Can someone help me with compiling CoreOS's GRUB under
Ubuntu? We are trying to set trusted boot and TPM support in CoreOS project
seems very convenient for us.

Almost everything works fine except of gptprio_test, which always FAILs for
me in its current state. I've tried to revert its last change from Aug 23,
2016, and it worked fine.
I have started discussion at
https://github.com/coreos/grub/commit/d457364d1d811ad262519cf6dde3d098caf7c778#commitcomment-29414984
, thinking that it is permanent problem, but David Michael replied that he
has no problems with this test.

Thats how I trying to build everything. I'm taking clean Ubuntu 18.04,
enabling source repositories and running next commands:
sudo apt-get build-dep grub2
sudo apt install git ovmf
git clone https://github.com/coreos/grub.git
cd grub
./linguas.sh
./autogen.sh
CFLAGS="-Wno-error=unused-value" ./configure --with-platform=efi --target=
x86_64
make
make gptprio_test.log # or make check

Tried also installing libfreetype6-dev, xorriso, and qemu-kvm from David's
reply (only qemu-kvm was absent) and starting from scratch, but it doesn't
change anything.

Looking forward for any help.
Artem Leshchev
2018-06-20 11:48:46 UTC
Permalink
I have added hexdump after each step in gptprio_test and looks liks
gptprio.next really repairs backup GPT, while test states that it should
not.
David Michael
2018-06-20 14:20:23 UTC
Permalink
Post by Artem Leshchev
Hello everybody. Can someone help me with compiling CoreOS's GRUB under
Ubuntu? We are trying to set trusted boot and TPM support in CoreOS project
seems very convenient for us.
Almost everything works fine except of gptprio_test, which always FAILs for
me in its current state. I've tried to revert its last change from Aug 23,
2016, and it worked fine.
I have started discussion at
https://github.com/coreos/grub/commit/d457364d1d811ad262519cf6dde3d098caf7c778#commitcomment-29414984
, thinking that it is permanent problem, but David Michael replied that he
has no problems with this test.
Thats how I trying to build everything. I'm taking clean Ubuntu 18.04,
sudo apt-get build-dep grub2
sudo apt install git ovmf
git clone https://github.com/coreos/grub.git
cd grub
./linguas.sh
./autogen.sh
CFLAGS="-Wno-error=unused-value" ./configure --with-platform=efi --target=x86_64
Okay, thanks for sending the configure line. I ran the test with the
pc platform, which passes reliably, but I do see the failure with efi.
I will look into this further.

Thanks.

David
Artem Leshchev
2018-06-20 14:29:34 UTC
Permalink
Post by David Michael
Okay, thanks for sending the configure line. I ran the test with the
pc platform, which passes reliably, but I do see the failure with efi.
I will look into this further.
Looking forward for the solution. Thanks for your feedback.

Loading...