Erebus
root (hd0,0)
install /grub/1/stage1 (hd0,0) /grub/1/stage2 p /grub/1/config
root (hd0,0)
install /grub/1/stage1 (hd0) /grub/1/stage2 p /grub/1/config
/usr/bin/env - PATH=/usr/bin:/bin /usr/bin/nice -n 19 /bin/bash --noprofile --norc <<'EOS'
set -e -u -o pipefail || exit 1
set -x
temporary="/tmp/grub--${RANDOM}"
mkdir "${temporary}"
cd "${temporary}"
curl ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz | tar xz
cd ./grub-0.97
curl 'http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/sys-boot/grub/files/grub-0.97-gpt.patch?rev=1.1' | patch -p1
./configure \
--prefix=/tools/grub/0.97--1 \
--host=i686-pc-linux-gnu \
--enable-ext2fs \
--enable-serial --disable-serial-speed-simulation \
--enable-gunzip --enable-md5-password \
--disable-fat --disable-ffs --disable-ufs2 --disable-minix --disable-reiserfs --disable-vstafs --disable-jfs --disable-xfs --disable-iso9660 \
--disable-packet-retransmission --disable-pci-direct \
--disable-{3c509,3c529,3c595,3c90x,cs89x0,davicom,depca,eepro,eepro100,epic100} \
--disable-{3c507,exos205,ni5210,lance,ne2100,ni6510,natsemi,ni5010,3c503,ne} \
--disable-{ns8390,wd,otulip,rtl8139,sis900,sk-g16,smc9000,tiara,tulip,via-rhine} \
--disable-{w89c840,compex-rl2000-fix} \
--disable-diskless --disable-hercules \
--disable-example-kernel \
--disable-auto-linux-mem-opt \
--enable-dependency-tracking \
--disable-maintainer-mode \
CFLAGS='-O2 -march=native -mtune=native -pipe' LDFLAGS='-static'
make -j 16
make install DESTDIR="${temporary}/dist"
find "${temporary}/dist" -type d -exec chmod 555 {} \;
find "${temporary}/dist" -type f -exec chmod 444 {} \;
find "${temporary}/dist/tools/grub/0.97--1/bin" -type f -exec chmod 555 {} \;
find "${temporary}/dist/tools/grub/0.97--1/sbin" -type f -exec chmod 555 {} \;
echo "${temporary}"
EOS