From 64fd4ec09653e49e64465f5b1416460f3c94f718 Mon Sep 17 00:00:00 2001 From: Aditya Date: Sat, 14 Jan 2023 21:35:44 +0530 Subject: [PATCH] Add 9.2 - Build LFS bootscripts --- scripts/chapter9/9.2-lfs-bootscripts.sh | 10 ++++++++++ scripts/main.sh | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 scripts/chapter9/9.2-lfs-bootscripts.sh diff --git a/scripts/chapter9/9.2-lfs-bootscripts.sh b/scripts/chapter9/9.2-lfs-bootscripts.sh new file mode 100644 index 0000000..0f41e1e --- /dev/null +++ b/scripts/chapter9/9.2-lfs-bootscripts.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +cd /sources +tar xf lfs-bootscripts-20220723.tar.xz +cd lfs-bootscripts-20220723 + +make install + +cd /sources +rm -rf lfs-bootscripts-20220723 diff --git a/scripts/main.sh b/scripts/main.sh index 78a75c9..c1f5f73 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1486,3 +1486,16 @@ then stop_script "chapter8/8.79-cleanup.sh" fi +# Chapter 9.2 +# =========== +echo "Chapter 9" +echo "Installing LFS bootscripts" +su -c "SCRIPT/chapter9/9.2-lfs-bootscripts.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter9/9.2-lfs-bootscripts.sh" +fi +