util-linux: install libuuid and libblkid to initramfs if parted support is enabled in initramfs

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-09-20 14:04:49 +02:00
parent 04cff3deab
commit 7fb9d61ea8

View File

@ -91,12 +91,18 @@ 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 \
--enable-static --disable-shared"
PKG_CONFIGURE_OPTS_INIT="$PKG_CONFIGURE_OPTS_TARGET \
--enable-static --disable-shared \ --enable-static --disable-shared \
--disable-libsmartcols " --disable-libsmartcols "
PKG_CONFIGURE_OPTS_INIT="$PKG_CONFIGURE_OPTS_TARGET \
--prefix=/ \
--bindir=/bin \
--sbindir=/sbin \
--sysconfdir=/etc \
--libexecdir=/lib \
--localstatedir=/var \
--disable-libsmartcols"
if [ "$SWAP_SUPPORT" = "yes" ]; then if [ "$SWAP_SUPPORT" = "yes" ]; then
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-libsmartcols" PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-libsmartcols"
else else
@ -129,7 +135,18 @@ post_makeinstall_target() {
} }
post_makeinstall_init() { post_makeinstall_init() {
rm -rf $INSTALL/usr rm -rf $INSTALL/bin
rm -rf $INSTALL/sbin
if [ $INITRAMFS_PARTED_SUPPORT = "yes" ]; then
# install libuuid and libblkid here, needed by 'parted'
rm -rf $INSTALL/lib/libmount.so*
mkdir -p $INSTALL/sbin
cp mkfs $INSTALL/sbin
else
rm -rf $INSTALL/lib
fi
mkdir -p $INSTALL/sbin mkdir -p $INSTALL/sbin
cp fsck $INSTALL/sbin cp fsck $INSTALL/sbin