Updates.
This commit is contained in:
parent
8cb1ae10b2
commit
2aa2b6e508
10 changed files with 33 additions and 48 deletions
|
@ -41,7 +41,7 @@ then
|
|||
done
|
||||
fi
|
||||
|
||||
clear 2>&1 >>${BOOTLOG}
|
||||
clear >/dev/console
|
||||
|
||||
DEVICE_CPU_GOVERNOR=$(get_setting system.cpugovernor)
|
||||
${DEVICE_CPU_GOVERNOR} 2>&1 >>${BOOTLOG}
|
||||
|
|
|
@ -9,6 +9,7 @@ CONFIG_HAVE_DOT_CONFIG=y
|
|||
# Settings
|
||||
#
|
||||
# CONFIG_DESKTOP is not set
|
||||
CONFIG_PLATFORM_LINUX=y
|
||||
# CONFIG_EXTRA_COMPAT is not set
|
||||
# CONFIG_FEDORA_COMPAT is not set
|
||||
# CONFIG_INCLUDE_SUSv2 is not set
|
||||
|
@ -338,7 +339,7 @@ CONFIG_FEATURE_TR_CLASSES=y
|
|||
CONFIG_FEATURE_TR_EQUIV=y
|
||||
# CONFIG_TRUE is not set
|
||||
# CONFIG_TRUNCATE is not set
|
||||
# CONFIG_TTY is not set
|
||||
CONFIG_TTY=y
|
||||
CONFIG_UNAME=y
|
||||
CONFIG_UNAME_OSNAME="GNU/Linux"
|
||||
# CONFIG_BB_ARCH is not set
|
||||
|
@ -381,8 +382,8 @@ CONFIG_FEATURE_LOADFONT_RAW=y
|
|||
# CONFIG_RESET is not set
|
||||
# CONFIG_RESIZE is not set
|
||||
# CONFIG_FEATURE_RESIZE_PRINT is not set
|
||||
# CONFIG_SETCONSOLE is not set
|
||||
# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set
|
||||
CONFIG_SETCONSOLE=y
|
||||
CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y
|
||||
# CONFIG_SETKEYCODES is not set
|
||||
# CONFIG_SETLOGCONS is not set
|
||||
# CONFIG_SHOWKEY is not set
|
||||
|
|
|
@ -8,6 +8,7 @@ CONFIG_HAVE_DOT_CONFIG=y
|
|||
#
|
||||
# Settings
|
||||
#
|
||||
CONFIG_PLATFORM_LINUX=y
|
||||
CONFIG_DESKTOP=y
|
||||
# CONFIG_EXTRA_COMPAT is not set
|
||||
# CONFIG_FEDORA_COMPAT is not set
|
||||
|
@ -338,7 +339,7 @@ CONFIG_FEATURE_TR_CLASSES=y
|
|||
CONFIG_FEATURE_TR_EQUIV=y
|
||||
CONFIG_TRUE=y
|
||||
# CONFIG_TRUNCATE is not set
|
||||
# CONFIG_TTY is not set
|
||||
CONFIG_TTY=y
|
||||
CONFIG_UNAME=y
|
||||
CONFIG_UNAME_OSNAME="GNU/Linux"
|
||||
CONFIG_BB_ARCH=y
|
||||
|
|
|
@ -128,8 +128,8 @@ post_makeinstall_target() {
|
|||
safe_remove ${INSTALL}/usr/lib/udev/rules.d/73-seat-late.rules
|
||||
|
||||
# remove getty units, we dont want a console
|
||||
#safe_remove ${INSTALL}/usr/lib/systemd/system/autovt@.service
|
||||
#safe_remove ${INSTALL}/usr/lib/systemd/system/console-getty.service
|
||||
safe_remove ${INSTALL}/usr/lib/systemd/system/autovt@.service
|
||||
safe_remove ${INSTALL}/usr/lib/systemd/system/console-getty.service
|
||||
safe_remove ${INSTALL}/usr/lib/systemd/system/container-getty@.service
|
||||
safe_remove ${INSTALL}/usr/lib/systemd/system/getty.target
|
||||
safe_remove ${INSTALL}/usr/lib/systemd/system/getty@.service
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="util-linux"
|
||||
PKG_VERSION="2.37"
|
||||
PKG_SHA256="bd07b7e98839e0359842110525a3032fdb8eaf3a90bedde3dd1652d32d15cce5"
|
||||
PKG_VERSION="2.38"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_URL="https://www.kernel.org/pub/linux/utils/util-linux/v$(get_pkg_version_maj_min)/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
PKG_DEPENDS_HOST="ccache:host autoconf:host automake:host intltool:host libtool:host pkg-config:host"
|
||||
|
@ -93,4 +92,5 @@ post_install () {
|
|||
if [ "${SWAP_SUPPORT}" = "yes" ]; then
|
||||
enable_service swap.service
|
||||
fi
|
||||
enable_service fstrim.timer
|
||||
}
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
From 583990d25b5d65a9a9771a39d112de0ee16a1f3a Mon Sep 17 00:00:00 2001
|
||||
From: Karel Zak <kzak@redhat.com>
|
||||
Date: Wed, 28 Jul 2021 11:05:36 +0200
|
||||
Subject: [PATCH] losetup: use LOOP_CONFIGURE in a more robust way
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
32-bit userspace returns ENOTTY:
|
||||
ioctl(4, LOOP_CONFIGURE, {fd=3, block_size=0, info={lo_offset=0, lo_number=0, lo_flags=LO_FLAGS_AUTOCLEAR, lo_file_name="/usr/install/iso/systemrescue-8.04-amd64.iso", ...}}) = -1 ENOTTY (Inappropriate ioctl for device)
|
||||
|
||||
64-bit userspace returns EINVAL:
|
||||
ioctl(4, LOOP_CONFIGURE, {fd=3, block_size=0, info={lo_offset=0, lo_number=0, lo_flags=LO_FLAGS_AUTOCLEAR, lo_file_name="/usr/src/PACKAGES/systemrescue-8.04-amd64.iso", ...}}) = -1 EINVAL (Invalid argument)
|
||||
|
||||
The correct return value for an unknown ioctl is ENOTTY, but we need
|
||||
to support already released kernels, so let's support both errnos.
|
||||
|
||||
Reported-by: Krzysztof Olędzki <ole@ans.pl>
|
||||
Signed-off-by: Karel Zak <kzak@redhat.com>
|
||||
---
|
||||
lib/loopdev.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/loopdev.c b/lib/loopdev.c
|
||||
index 1eef15d89..d9ea1d4a2 100644
|
||||
--- a/lib/loopdev.c
|
||||
+++ b/lib/loopdev.c
|
||||
@@ -1360,7 +1360,7 @@ int loopcxt_setup_device(struct loopdev_cxt *lc)
|
||||
if (ioctl(dev_fd, LOOP_CONFIGURE, &lc->config) < 0) {
|
||||
rc = -errno;
|
||||
errsv = errno;
|
||||
- if (errno != EINVAL) {
|
||||
+ if (errno != EINVAL && errno != ENOTTY) {
|
||||
DBG(SETUP, ul_debugobj(lc, "LOOP_CONFIGURE failed: %m"));
|
||||
goto err;
|
||||
}
|
9
packages/sysutils/util-linux/system.d/fstrim.service
Normal file
9
packages/sysutils/util-linux/system.d/fstrim.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Discard unused blocks on all filesystems
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# don't run immediately on boot when timer event was missed
|
||||
ExecStartPre=-/usr/bin/sleep 20
|
||||
ExecStart=-/usr/sbin/fstrim --all --verbose --quiet-unsupported
|
||||
ExecStart=-/usr/bin/touch /storage/.cache/fstrim.run
|
10
packages/sysutils/util-linux/system.d/fstrim.timer
Normal file
10
packages/sysutils/util-linux/system.d/fstrim.timer
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Discard unused blocks once a week
|
||||
|
||||
[Timer]
|
||||
OnCalendar=weekly
|
||||
AccuracySec=1h
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -4,7 +4,7 @@ DEVICE_VOL_MODIFIER="ABS_RZ"
|
|||
UI_SERVICE="weston.service"
|
||||
|
||||
DEVICE_BRIGHTNESS="125"
|
||||
SPLASH_LOADER="imagemagick"
|
||||
SPLASH_LOADER="plymouth"
|
||||
|
||||
# FREQ Governors
|
||||
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" \
|
||||
|
|
|
@ -4511,7 +4511,7 @@ CONFIG_FB_SYS_IMAGEBLIT=y
|
|||
CONFIG_FB_SYS_FOPS=y
|
||||
CONFIG_FB_DEFERRED_IO=y
|
||||
CONFIG_FB_MODE_HELPERS=y
|
||||
# CONFIG_FB_TILEBLITTING is not set
|
||||
CONFIG_FB_TILEBLITTING=y
|
||||
|
||||
#
|
||||
# Frame buffer hardware drivers
|
||||
|
@ -4535,7 +4535,7 @@ CONFIG_FB_EFI=y
|
|||
# CONFIG_FB_I740 is not set
|
||||
# CONFIG_FB_LE80578 is not set
|
||||
# CONFIG_FB_MATROX is not set
|
||||
# CONFIG_FB_RADEON is not set
|
||||
CONFIG_FB_RADEON=y
|
||||
# CONFIG_FB_ATY128 is not set
|
||||
# CONFIG_FB_ATY is not set
|
||||
# CONFIG_FB_S3 is not set
|
||||
|
|
Loading…
Reference in a new issue