mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
util-linux: add support for install in initramfs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
59a8919892
commit
6b45521b40
@ -23,6 +23,7 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_URL="http://www.kernel.org/pub/linux/utils/util-linux/v2.24/$PKG_NAME-$PKG_VERSION.tar.xz"
|
PKG_URL="http://www.kernel.org/pub/linux/utils/util-linux/v2.24/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_DEPENDS_TARGET="toolchain"
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
|
PKG_DEPENDS_INIT="toolchain"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="system"
|
PKG_SECTION="system"
|
||||||
PKG_SHORTDESC="util-linux: Miscellaneous system utilities for Linux"
|
PKG_SHORTDESC="util-linux: Miscellaneous system utilities for Linux"
|
||||||
@ -96,6 +97,7 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-gtk-doc \
|
|||||||
--without-systemdsystemunitdir"
|
--without-systemdsystemunitdir"
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_HOST="$PKG_CONFIGURE_OPTS_TARGET"
|
PKG_CONFIGURE_OPTS_HOST="$PKG_CONFIGURE_OPTS_TARGET"
|
||||||
|
PKG_CONFIGURE_OPTS_INIT="$PKG_CONFIGURE_OPTS_TARGET"
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
rm -rf $INSTALL/usr/bin
|
rm -rf $INSTALL/usr/bin
|
||||||
@ -122,6 +124,13 @@ post_makeinstall_target() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_makeinstall_init() {
|
||||||
|
rm -rf $INSTALL/usr
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/sbin
|
||||||
|
cp .libs/fsck $INSTALL/sbin
|
||||||
|
}
|
||||||
|
|
||||||
post_install () {
|
post_install () {
|
||||||
if [ "$SWAP_SUPPORT" = "yes" ]; then
|
if [ "$SWAP_SUPPORT" = "yes" ]; then
|
||||||
enable_service swap.service
|
enable_service swap.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user