mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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:
parent
04cff3deab
commit
7fb9d61ea8
@ -91,12 +91,18 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-gtk-doc \
|
||||
--without-systemdsystemunitdir"
|
||||
|
||||
PKG_CONFIGURE_OPTS_HOST="$PKG_CONFIGURE_OPTS_TARGET \
|
||||
--enable-static --disable-shared"
|
||||
|
||||
PKG_CONFIGURE_OPTS_INIT="$PKG_CONFIGURE_OPTS_TARGET \
|
||||
--enable-static --disable-shared \
|
||||
--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
|
||||
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-libsmartcols"
|
||||
else
|
||||
@ -129,7 +135,18 @@ post_makeinstall_target() {
|
||||
}
|
||||
|
||||
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
|
||||
cp fsck $INSTALL/sbin
|
||||
|
Loading…
x
Reference in New Issue
Block a user