mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.73 - Build util-linux
This commit is contained in:
parent
018481803b
commit
6d38b137a9
2 changed files with 54 additions and 0 deletions
42
scripts/chapter8/8.73-util-linux.sh
Normal file
42
scripts/chapter8/8.73-util-linux.sh
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf util-linux-2.38.1.tar.xz
|
||||
cd util-linux-2.38.1
|
||||
|
||||
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
||||
--bindir=/usr/bin \
|
||||
--libdir=/usr/lib \
|
||||
--sbindir=/usr/sbin \
|
||||
--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 \
|
||||
--without-systemd \
|
||||
--without-systemdsystemunitdir
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
chown -Rv tester .
|
||||
su tester -c "make -k check"
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf util-linux-2.38.1
|
|
@ -1414,3 +1414,15 @@ then
|
|||
stop_script "chapter8/8.72-procps-ng.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.73
|
||||
# ============
|
||||
echo "Building util-linux"
|
||||
su -c "bash $SCRIPT/chapter8/8.73-util-linux.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.73-util-linux.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue