mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-14 08:59:45 +00:00
40 lines
736 B
Bash
40 lines
736 B
Bash
|
#!/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
|
||
|
|