Super Grub2 Disk Sid Chroot Grub2 Build And Installation
NOTE: We no longer use these instructions
As explained in Super Grub2 Disk Sid Chroot you need to enter in the chroot thanks to:
chroot /mnt/ssd/sgd_chroot_sid_amd64/ /bin/bash
Now we are going to install dependencies for grub2. First of all we need to edit
/etc/apt/sources.list
to add this line
deb-src http://ftp.de.debian.org/debian sid main
Then refresh the apt data with:
apt-get update
and finally install the additional packages:
apt-get install rsync python apt-get build-dep grub2
Now we are going to work as a normal user
su myuser
So that we can work from our development directory. Now we are going to get Debian's grub2 source code.
mkdir -p ~/gnu/sgd/debian_grub2 cd ~/gnu/sgd/debian_grub2 apt-get source grub2
And then we are going to put ourselves in Debian's grub2 source code dir.
cd grub2-2.00
Now we are going to configure initially the system with: bash ./linguas.sh bash ./autogen.sh
Then we are going to build 3 different sets of target + platform:
i386-efi i386-pc x86_64-efi
There isn't a:
x86_64-pc
because in those computers i386-pc is used instead.
Hybrid build
./configure --target=i386 --with-platform=efi && make && sudo make uninstall && make clean ./configure --target=i386 --with-platform=pc && make && sudo make uninstall && make clean ./configure --target=x86_64 --with-platform=efi && make && sudo make uninstall && make clean
./configure --target=i386 --with-platform=pc && make && sudo make install && make clean ./configure --target=x86_64 --with-platform=efi && make && sudo make install && make clean
i386 - pc build
./configure --target=i386 --with-platform=efi && make && sudo make uninstall && make clean ./configure --target=i386 --with-platform=pc && make && sudo make uninstall && make clean ./configure --target=x86_64 --with-platform=efi && make && sudo make uninstall && make clean
./configure --target=i386 --with-platform=pc && make && sudo make install && make clean
x86_64 - efi build
./configure --target=i386 --with-platform=efi && make && sudo make uninstall && make clean ./configure --target=i386 --with-platform=pc && make && sudo make uninstall && make clean ./configure --target=x86_64 --with-platform=efi && make && sudo make uninstall && make clean
./configure --target=x86_64 --with-platform=efi && make && sudo make install && make clean
i386 - efi build
./configure --target=i386 --with-platform=efi && make && sudo make uninstall && make clean ./configure --target=i386 --with-platform=pc && make && sudo make uninstall && make clean ./configure --target=x86_64 --with-platform=efi && make && sudo make uninstall && make clean
./configure --target=i386 --with-platform=efi && make && sudo make install && make clean