mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-24 20:52:53 +00:00
Add 8.60 - Build grub
This commit is contained in:
parent
3cc7c2fdda
commit
2a878335ef
2 changed files with 40 additions and 0 deletions
28
scripts/chapter8/8.60-grub.sh
Normal file
28
scripts/chapter8/8.60-grub.sh
Normal file
|
@ -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
|
|
@ -1258,3 +1258,15 @@ then
|
||||||
stop_script "chapter8/8.59-groff.sh"
|
stop_script "chapter8/8.59-groff.sh"
|
||||||
fi
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue