diff --git a/scripts/chapter8/8.60-grub.sh b/scripts/chapter8/8.60-grub.sh new file mode 100644 index 0000000..d9d29c0 --- /dev/null +++ b/scripts/chapter8/8.60-grub.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +cd /sources +tar xf grub-2.06.tar.xz +cd grub-2.06 + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-efiemu \ + --disable-werror + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make install +mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completi + +cd /sources +rm -rf grub-2.06 diff --git a/scripts/main.sh b/scripts/main.sh index efe392f..54e34ec 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1258,3 +1258,15 @@ then stop_script "chapter8/8.59-groff.sh" fi +# Chapter 8.60 +# ============ +echo "Building grub" +su -c "bash $SCRIPT/chapter8/8.60-bash.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.60-bash.sh" +fi +