mirror of
https://github.com/Poltern/lfs-ru.git
synced 2024-10-18 11:50:21 +03:00
8cd1e8e64d
If CONFIG_FB is not set but CONFIG_DRM_FBDEV_EMULATION is set to y, on a DRM-drived graphic card (anything from AMD/ATI, Intel, or NVIDIA in recent 20 years) we'd be using a fb console but without /sys/class/graphics/fb0. Then the script won't run setfont for VT 2-6. Typos on comments. These changes are all in comments that do not affect the books in any way. sysklogd Turn off network logging by default Update to lfs-bootscripts-20240825 Fix typos
31 lines
744 B
Bash
Executable File
31 lines
744 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# -lt 1 ] ; then
|
|
echo "This script needs the location of the xml file to update"
|
|
exit 1
|
|
fi
|
|
|
|
FILE=$1
|
|
|
|
./make-aux-files.sh
|
|
|
|
# Bootscript data
|
|
bootscripts=$(ls lfs-bootscripts*.xz)
|
|
base=$(basename $bootscripts .tar.xz)
|
|
bootsize=$(ls -l --block-size=1024 $bootscripts | cut -f5 -d" ")
|
|
bootmd5=$(md5sum $bootscripts | cut -f1 -d" ")
|
|
|
|
# Figure installed size of bootscripts
|
|
TOPDIR=$(pwd)
|
|
TMP_DIR=$(mktemp -d /tmp/lfsbootfiles.XXXXXX)
|
|
pushd $TMP_DIR > /dev/null
|
|
tar -xf $TOPDIR/$bootscripts
|
|
bootinstallsize=$(du -sk $TMP_DIR | cut -f1)
|
|
popd > /dev/null
|
|
rm -rf $TMP_DIR
|
|
|
|
sed -i -e s/BOOTSCRIPTS-SIZE/$bootsize/ \
|
|
-e s/BOOTSCRIPTS-INSTALL-KB/$bootinstallsize/ \
|
|
-e s/BOOTSCRIPTS-MD5SUM/$bootmd5/ $FILE
|
|
|