util-linux: add support for install in initramfs

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-06-07 00:23:49 +02:00
parent 59a8919892
commit 6b45521b40

View File

@ -23,6 +23,7 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
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_INIT="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="system"
PKG_SHORTDESC="util-linux: Miscellaneous system utilities for Linux"
@ -96,6 +97,7 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-gtk-doc \
--without-systemdsystemunitdir"
PKG_CONFIGURE_OPTS_HOST="$PKG_CONFIGURE_OPTS_TARGET"
PKG_CONFIGURE_OPTS_INIT="$PKG_CONFIGURE_OPTS_TARGET"
post_makeinstall_target() {
rm -rf $INSTALL/usr/bin
@ -122,6 +124,13 @@ post_makeinstall_target() {
fi
}
post_makeinstall_init() {
rm -rf $INSTALL/usr
mkdir -p $INSTALL/sbin
cp .libs/fsck $INSTALL/sbin
}
post_install () {
if [ "$SWAP_SUPPORT" = "yes" ]; then
enable_service swap.service