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 +