mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2025-02-05 08:50:03 +00:00
Add 7.12 - Build util-linux
This commit is contained in:
parent
a5863e0991
commit
219c144f8c
2 changed files with 51 additions and 0 deletions
39
scripts/chapter7/7.12-util-linux.sh
Normal file
39
scripts/chapter7/7.12-util-linux.sh
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf util-linux-2.38.1.tar.xz
|
||||
cd util-linux-2.38.1
|
||||
|
||||
mkdir -pv /var/lib/hwclock
|
||||
|
||||
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
||||
--libdir=/usr/lib \
|
||||
--docdir=/usr/share/doc/util-linux-2.38.1 \
|
||||
--disable-chfn-chsh \
|
||||
--disable-login \
|
||||
--disable-nologin \
|
||||
--disable-su \
|
||||
--disable-setpriv \
|
||||
--disable-runuser \
|
||||
--disable-pylibmount \
|
||||
--disable-static \
|
||||
--without-python \
|
||||
runstatedir=/run
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make install
|
||||
|
||||
cd $LFS/sources
|
||||
rm -rf util-linux-2.38.1
|
||||
|
|
@ -517,3 +517,15 @@ then
|
|||
stop_script "chapter7/7.11-texinfo.sh"
|
||||
fi
|
||||
|
||||
# Chapter 7.12
|
||||
# ============
|
||||
echo "Building util-linux"
|
||||
su -c "bash $PWD/chapter7/7.12-util-linux.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter7/7.12-util-linux.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue