From 2a878335ef84e895fb70c5ceb2c46f85289d0df5 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 15:46:04 +0530 Subject: [PATCH] Add 8.60 - Build grub --- scripts/chapter8/8.60-grub.sh | 28 ++++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 scripts/chapter8/8.60-grub.sh 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 +